public class WSSTokenUtils
extends java.lang.Object
| Constructor and Description | 
|---|
| WSSTokenUtils()Create a new  UsernameTokeninstance. | 
| Modifier and Type | Method and Description | 
|---|---|
| static BinaryDataEncoder | createBinaryDataEncoder(java.lang.String encTypeURI)Create a new  BinaryDataEncoderinstance. | 
| static WSSBinarySecurityToken | createBinarySecurityToken(java.lang.String wsuId, java.lang.String valType, java.lang.String encType, byte[] value)Create a new  BinarySecurityTokeninstance. | 
| static WSUCreated | createCreated(java.util.Date created)Create a new  Createdinstance. | 
| static WSUCreated | createCreated(java.util.Date created, java.lang.String valType)Create a new  Createdinstance. | 
| static WSSEmbedded | createEmbedded(java.lang.String wsuId, WSSecurityToken token)Create a new  Embeddedinstance. | 
| static WSUExpires | createExpires(java.util.Date expires)Create a new  Expiresinstance. | 
| static WSUExpires | createExpires(java.util.Date expires, java.lang.String valType)Create a new  Expiresinstance. | 
| static WSSKeyIdentifier | createKeyIdentifier(java.lang.String wsuId, java.lang.String valTypeURI, java.lang.String encTypeURI, byte[] value)Create a new  KeyIdentifierinstance. | 
| static WSSReference | createReference(java.lang.String uri)Create a new  Referenceinstance. | 
| static WSSReference | createReference(java.lang.String uri, java.lang.String valTypeURI)Create a new  Referenceinstance. | 
| static WSSecurityToken | createSecurityToken(org.w3c.dom.Element token)Create a new  SecurityTokeninstance. | 
| static WSSecurityTokenReference | createSecurityTokenReference(java.lang.String wsuId, WSSecurityTokenReferenceType stRef)Create a new  SecurityTokenReferenceinstance. | 
| static WSSecurityTokenReference | createSecurityTokenReference(java.lang.String wsuId, WSSecurityTokenReferenceType stRef, java.lang.String usage)Create a new  SecurityTokenReferenceinstance. | 
| static TimeDataEncoder | createTimeDataEncoder(java.lang.String valTypeURI)Create a new  BinaryDataEncoderinstance. | 
| static WSUTimestamp | createTimestamp(java.lang.String wsuId, WSUCreated created, WSUExpires expires)Create a new  Timestampinstance. | 
| static UsernameToken | createUsernameToken(java.lang.String wsuId, java.lang.String username)Create a new  UsernameTokeninstance. | 
| static UsernameToken | createUsernameToken(java.lang.String wsuId, java.lang.String username, byte[] nonce, java.lang.String nonceEncType, WSUCreated created, char[] password, java.lang.String passwdType)Create a new  UsernameTokeninstance. | 
| static UsernameToken | createUsernameToken(java.lang.String wsuId, java.lang.String username, byte[] nonce, WSUCreated created, char[] passwd)Create a new  UsernameTokeninstance. | 
| static X509BinarySecurityToken | createX509BinarySecurityToken(java.lang.String wsuId, java.security.cert.X509Certificate cert)Create a new X.509  BinarySecurityTokeninstance. | 
| static byte[] | getKeyIdentifier(KerberosBinarySecurityToken kst)Computes the KeyIdentifier for referencing Kerberos Tokens | 
public static UsernameToken createUsernameToken(java.lang.String wsuId, java.lang.String username)
UsernameToken instance.wsuId - The token identifier.username - The token identifier.UsernameToken.public static UsernameToken createUsernameToken(java.lang.String wsuId, java.lang.String username, byte[] nonce, WSUCreated created, char[] passwd)
UsernameToken instance.wsuId - The token identifier.username - The token identifier.nonce - The nonce value.created - The creation timestamp.passwd - The password bytes.UsernameToken.public static UsernameToken createUsernameToken(java.lang.String wsuId, java.lang.String username, byte[] nonce, java.lang.String nonceEncType, WSUCreated created, char[] password, java.lang.String passwdType)
UsernameToken instance.wsuId - The token identifier.username - The token identifier.nonce - The nonce value.nonceEncType - The nonce encoding type.created - The creation timestamp.password - The password bytes.passwdType - The password type.UsernameToken.public static X509BinarySecurityToken createX509BinarySecurityToken(java.lang.String wsuId, java.security.cert.X509Certificate cert)
BinarySecurityToken instance.wsuId - The token identifier.cert - The token content.X509BinarySecurityToken.public static WSUCreated createCreated(java.util.Date created)
Created instance.created - The creation timestamp.WSUCreated.public static WSUCreated createCreated(java.util.Date created, java.lang.String valType)
Created instance.created - The creation timestamp.valType - The timestamp encoding type.WSUCreated.public static WSUExpires createExpires(java.util.Date expires)
Expires instance.expires - The expiration timestamp.WSUExpires.public static WSUExpires createExpires(java.util.Date expires, java.lang.String valType)
Expires instance.expires - The expiration timestamp.valType - The timestamp encoding type.WSUExpires.public static WSUTimestamp createTimestamp(java.lang.String wsuId, WSUCreated created, WSUExpires expires)
Timestamp instance.wsuId - The timestamp identifier.created - The creation timestamp.expires - The expiration timestamp.WSUTimestamp.public static WSSEmbedded createEmbedded(java.lang.String wsuId, WSSecurityToken token)
Embedded instance.wsuId - The global identifier.token - The security token to embed.WSSEmbedded token reference.public static WSSecurityTokenReference createSecurityTokenReference(java.lang.String wsuId, WSSecurityTokenReferenceType stRef)
SecurityTokenReference instance.wsuId - The wsu identifier value.stRef - The WSSecurityTokenReferenceType object.WSSecurityTokenReference.public static WSSecurityTokenReference createSecurityTokenReference(java.lang.String wsuId, WSSecurityTokenReferenceType stRef, java.lang.String usage)
SecurityTokenReference instance.wsuId - The wsu identifier.stRef - The WSSecurityTokenReferenceType object.usage - The Usage attribute value.WSSecurityTokenReference object.public static WSSBinarySecurityToken createBinarySecurityToken(java.lang.String wsuId, java.lang.String valType, java.lang.String encType, byte[] value) throws WSSException
BinarySecurityToken instance.wsuId - The token identifier.valType - The token value type.encType - The token encoding type.value - The raw token value bytes.BinarySecurityToken.WSSExceptionpublic static WSSecurityToken createSecurityToken(org.w3c.dom.Element token) throws WSSException
SecurityToken instance.token - The element that conforms to the schema of a WSS security token.WSSecurityToken.WSSExceptionpublic static WSSReference createReference(java.lang.String uri) throws WSSException
Reference instance.uri - The reference target.WSSExceptionpublic static WSSReference createReference(java.lang.String uri, java.lang.String valTypeURI) throws WSSException
Reference instance.uri - The reference target.valTypeURI - The reference value type URI.WSSExceptionpublic static WSSKeyIdentifier createKeyIdentifier(java.lang.String wsuId, java.lang.String valTypeURI, java.lang.String encTypeURI, byte[] value) throws WSSException
KeyIdentifier instance.wsuId - The wsu identifier.valTypeURI - The identifier value type URI.encTypeURI - The identifier encoding value type URI.value - The raw identifier value bytes.WSSExceptionpublic static BinaryDataEncoder createBinaryDataEncoder(java.lang.String encTypeURI)
BinaryDataEncoder instance.encTypeURI - The encoding value type URI.public static TimeDataEncoder createTimeDataEncoder(java.lang.String valTypeURI)
BinaryDataEncoder instance.valTypeURI - The encoding value type URI.public static byte[] getKeyIdentifier(KerberosBinarySecurityToken kst)
kst - The Kerberos security token.