|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.ws.security.opt.impl.keyinfo.TokenBuilder
public abstract class TokenBuilder
| Field Summary | |
|---|---|
protected JAXBFilterProcessingContext |
context
|
protected WSSElementFactory |
elementFactory
|
protected KeyInfo |
keyInfo
|
protected static Logger |
logger
|
protected SecurityHeader |
securityHeader
|
| Constructor Summary | |
|---|---|
TokenBuilder(JAXBFilterProcessingContext context)
Creates a new instance of TokenBuilder |
|
| Method Summary | |
|---|---|
protected DirectReference |
buildDirectReference(String id,
String valueType)
builds the direct reference and sets the id and valueType in it |
protected KeyInfo |
buildKeyInfo(PublicKey pubKey)
builds key value with the public key provided Uses thid key value to construct key info |
protected KeyInfo |
buildKeyInfo(Reference ref,
String strId)
builds SecurityTokenReference with the reference element provided and with the id. |
protected KeyInfo |
buildKeyInfo(SecurityTokenReference str)
creates key info with the SecurityTokenReference provided |
protected KeyIdentifier |
buildKeyInfoWithEKSHA1(String ekSHA1Ref)
builds keyInfo with the given encrypted key sha1 reference |
protected KeyIdentifier |
buildKeyInfoWithKI(AuthenticationTokenPolicy.X509CertificateBinding binding,
String refType)
builds keyInfo with the given X509 certificate binding |
protected KeyIdentifier |
buildKeyInfoWithKIKerberos(AuthenticationTokenPolicy.KerberosTokenBinding binding,
String refType)
builds keyInfo with the given kerberos token binding |
protected KeyValue |
buildKeyValue(PublicKey pubKey)
builds RSA key value with the public key provided |
protected KeyInfo |
buildKIWithKeyName(String name)
|
protected SecurityTokenReference |
buildSTR(Reference ref)
creates a new SecurityTokenReference with the reference element provided |
protected SecurityTokenReference |
buildSTR(String strId,
Reference ref)
creates a new SecurityTokenReference with the reference element provided sets the id provided in the SecurityTokenReference if the security policy is a SignaturePolicy |
protected BinarySecurityToken |
createBinarySecurityToken(AuthenticationTokenPolicy.X509CertificateBinding binding,
X509Certificate x509Cert)
if a BinarySecurityToken already exists in the security header with the id of the binding returns it else creates a BinarySecurityToken with the X509 certificate provided Adds the username token to the security header |
protected BinarySecurityToken |
createKerberosBST(AuthenticationTokenPolicy.KerberosTokenBinding binding,
byte[] kerbToken)
if an BinarySecurityToken already exists in the security header with the id of the binding returns it else creates a new BinarySecurityToken with the kerboros token provided Adds the BinarySecurityToken to the security header |
protected UsernameToken |
createUsernameToken(AuthenticationTokenPolicy.UsernameTokenBinding binding,
UsernameToken unToken)
if an UsernameToken already exists in the security header with the id of the binding returns it else sets the id of the binding in the usernametoken provided and returns it Adds the username token to the security header |
protected String |
getID(WSSPolicy policy)
|
KeyInfo |
getKeyInfo()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.xml.ws.security.opt.api.keyinfo.TokenBuilder |
|---|
process |
| Field Detail |
|---|
protected static final Logger logger
protected JAXBFilterProcessingContext context
protected SecurityHeader securityHeader
protected WSSElementFactory elementFactory
protected KeyInfo keyInfo
| Constructor Detail |
|---|
public TokenBuilder(JAXBFilterProcessingContext context)
| Method Detail |
|---|
protected BinarySecurityToken createBinarySecurityToken(AuthenticationTokenPolicy.X509CertificateBinding binding,
X509Certificate x509Cert)
throws XWSSecurityException
binding - X509CertificateBindingx509Cert - X509Certificate
XWSSecurityException
protected UsernameToken createUsernameToken(AuthenticationTokenPolicy.UsernameTokenBinding binding,
UsernameToken unToken)
throws XWSSecurityException
binding - UsernameTokenBindingunToken - UsernameToken
XWSSecurityException
protected BinarySecurityToken createKerberosBST(AuthenticationTokenPolicy.KerberosTokenBinding binding,
byte[] kerbToken)
throws XWSSecurityException
binding - KerberosTokenBindingkerbToken - byte[]
XWSSecurityException
protected SecurityTokenReference buildSTR(String strId,
Reference ref)
strId - Stringref - Reference
protected SecurityTokenReference buildSTR(Reference ref)
ref - Reference
protected KeyInfo buildKeyInfo(Reference ref,
String strId)
ref - ReferencstrId - String
protected KeyInfo buildKeyInfo(SecurityTokenReference str)
str - SecurityTokenReference
protected KeyInfo buildKeyInfo(PublicKey pubKey)
pubKey - PublicKey
protected KeyValue buildKeyValue(PublicKey pubKey)
pubKey - PublicKey
protected KeyInfo buildKIWithKeyName(String name)
protected DirectReference buildDirectReference(String id,
String valueType)
id - StringvalueType - String
protected KeyIdentifier buildKeyInfoWithKI(AuthenticationTokenPolicy.X509CertificateBinding binding,
String refType)
throws XWSSecurityException
binding - X509CertificateBindingrefType - String
XWSSecurityException
protected KeyIdentifier buildKeyInfoWithKIKerberos(AuthenticationTokenPolicy.KerberosTokenBinding binding,
String refType)
throws XWSSecurityException
binding - KerberosTokenBindingrefType - String
XWSSecurityExceptionprotected KeyIdentifier buildKeyInfoWithEKSHA1(String ekSHA1Ref)
ekSHA1Ref - String
protected String getID(WSSPolicy policy)
public KeyInfo getKeyInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||