|
Oracle Security Developer Tools Web Services Security Java API Reference 10g Release 2 (10.1.2.0.2) B15570-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.wss.util.WSSTokenUtils
Utility class containing static methods for working with WSS Token elements and structures.
Constructor Summary | |
WSSTokenUtils() Create a new UsernameToken instance. |
Method Summary | |
static BinaryDataEncoder |
createBinaryDataEncoder(java.lang.String encTypeURI) Create a new BinaryDataEncoder instance. |
static WSSBinarySecurityToken |
createBinarySecurityToken(java.lang.String wsuId, java.lang.String valType, java.lang.String encType, byte[] value) Create a new BinarySecurityToken instance. |
static WSUCreated |
createCreated(java.util.Date created) Create a new Created instance. |
static WSUCreated |
createCreated(java.util.Date created, java.lang.String valType) Create a new Created instance. |
static WSSEmbedded |
createEmbedded(java.lang.String wsuId, WSSecurityToken token) Create a new Embedded instance. |
static WSUExpires |
createExpires(java.util.Date expires) Create a new Expires instance. |
static WSUExpires |
createExpires(java.util.Date expires, java.lang.String valType) Create a new Expires instance. |
static WSSKeyIdentifier |
createKeyIdentifier(java.lang.String wsuId, java.lang.String valTypeURI, java.lang.String encTypeURI, byte[] value) Create a new KeyIdentifier instance. |
static WSSReference |
createReference(java.lang.String uri) Create a new Reference instance. |
static WSSReference |
createReference(java.lang.String uri, java.lang.String valTypeURI) Create a new Reference instance. |
static WSSecurityToken |
createSecurityToken(org.w3c.dom.Element token) Create a new SecurityToken instance. |
static WSSecurityTokenReference |
createSecurityTokenReference(java.lang.String wsuId, WSSecurityTokenReferenceType stRef) Create a new SecurityTokenReference instance. |
static WSSecurityTokenReference |
createSecurityTokenReference(java.lang.String wsuId, WSSecurityTokenReferenceType stRef, java.lang.String usage) Create a new SecurityTokenReference instance. |
static TimeDataEncoder |
createTimeDataEncoder(java.lang.String valTypeURI) Create a new BinaryDataEncoder instance. |
static WSUTimestamp |
createTimestamp(java.lang.String wsuId, WSUCreated created, WSUExpires expires) Create a new Timestamp instance. |
static UsernameToken |
createUsernameToken(java.lang.String wsuId, java.lang.String username) Create a new UsernameToken instance. |
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 UsernameToken instance. |
static UsernameToken |
createUsernameToken(java.lang.String wsuId, java.lang.String username, byte[] nonce, WSUCreated created, char[] passwd) Create a new UsernameToken instance. |
static X509BinarySecurityToken |
createX509BinarySecurityToken(java.lang.String wsuId, oracle.security.crypto.cert.X509 cert) Create a new X.509 BinarySecurityToken instance. |
static byte[] |
getKeyIdentifier(KerberosBinarySecurityToken kst) Computes the KeyIdentifier for referencing Kerberos Tokens |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WSSTokenUtils()
UsernameToken
instance.Method Detail |
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, oracle.security.crypto.cert.X509 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
.WSSException
public 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
.WSSException
public static WSSReference createReference(java.lang.String uri) throws WSSException
Reference
instance.uri
- The reference target.WSSException
public 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.WSSException
public 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.WSSException
public 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.
|
Oracle Security Developer Tools Web Services Security Java API Reference 10g Release 2 (10.1.2.0.2) B15570-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |