public abstract class WSCDerivedKeyToken extends WSSElement implements WSSXMLSecurityToken
| Modifier and Type | Class and Description |
|---|---|
static class |
WSCDerivedKeyToken.WSCDerivedKeyToken12 |
static class |
WSCDerivedKeyToken.WSCDerivedKeyToken13 |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_LABEL
The default label value, i.e.
|
static int |
DEFAULT_LENGTH
the default length, i.e.
|
| Modifier | Constructor and Description |
|---|---|
protected |
WSCDerivedKeyToken(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String localName) |
protected |
WSCDerivedKeyToken(org.w3c.dom.Element element) |
protected |
WSCDerivedKeyToken(org.w3c.dom.Element element, java.lang.String systemId) |
| Modifier and Type | Method and Description |
|---|---|
javax.crypto.SecretKey |
deriveKey()
Wrapper over
deriveKey(SecretKey) but gets the SecretKey by calling any registered resolvers |
javax.crypto.SecretKey |
deriveKey(javax.crypto.SecretKey secret)
Use the P_SHA1 algorithm to derive the key, but get the value of the parameters from within this token
|
static javax.crypto.SecretKey |
deriveKey(javax.crypto.SecretKey secret, byte[] nonce, java.lang.String label, int offset, int length)
Use the P_SHA1 algorithm to derive a key from the given parameters
|
java.lang.Integer |
getGeneration()
Get the generation used for key derivation
|
java.lang.String |
getLabel()
Get the label used to derive the key, if there is no label set it returns null but for key derivation it uses a default label of "WS-SecureConversationWS-SecureConversation"
|
java.lang.Integer |
getLength()
Get the length used for key derivation
|
byte[] |
getNonce()
Get the nonce used for key derivation
|
protected abstract java.lang.String[] |
getNsURIs() |
java.lang.Integer |
getOffset()
Get the offset used for key derivation
|
WSSecurityTokenReference |
getSecurityTokenReference()
Get the SecurityTokenReference embedded inside this DerivedKeyToken
|
java.lang.Object |
getToken()
Returns the underlying token.
|
oracle.security.xmlsec.util.QName |
getTokenName()
Returns the
QName of the security token. |
void |
setGeneration(java.lang.Integer generation)
Set the generation for key derivation
|
void |
setLabel(java.lang.String label)
Set the label used to set the key, call with null to remove the label
|
void |
setLength(java.lang.Integer length)
Set the length for key derivation
|
void |
setNonce(byte[] nonce)
Set the nonce for key derivation
|
void |
setOffset(java.lang.Integer offset)
Set the offset for key derivation
|
void |
setSecurityTokenReference(WSSecurityTokenReference str)
Set the SecurityTokenReference as a child of this DeriveKeyToken
|
getId, getWsuId, setId, setWsuIdaddNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXMLclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNodepublic static final java.lang.String DEFAULT_LABEL
public static final int DEFAULT_LENGTH
protected WSCDerivedKeyToken(org.w3c.dom.Document owner,
java.lang.String nsURI,
java.lang.String localName)
protected WSCDerivedKeyToken(org.w3c.dom.Element element,
java.lang.String systemId)
protected WSCDerivedKeyToken(org.w3c.dom.Element element)
public java.lang.Object getToken()
throws WSSException
WSSecurityTokenPlease see sub-classes for information about the Java Object returned.
getToken in interface WSSecurityTokenWSSExceptionpublic oracle.security.xmlsec.util.QName getTokenName()
WSSecurityTokenQName of the security token.getTokenName in interface WSSecurityTokenprotected abstract java.lang.String[] getNsURIs()
public WSSecurityTokenReference getSecurityTokenReference()
public void setSecurityTokenReference(WSSecurityTokenReference str)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label -public java.lang.Integer getLength()
public void setLength(java.lang.Integer length)
length -public java.lang.Integer getOffset()
public void setOffset(java.lang.Integer offset)
offset -public java.lang.Integer getGeneration()
public void setGeneration(java.lang.Integer generation)
generation -public byte[] getNonce()
public void setNonce(byte[] nonce)
nonce -
public static javax.crypto.SecretKey deriveKey(javax.crypto.SecretKey secret,
byte[] nonce,
java.lang.String label,
int offset,
int length)
secret -nonce -label -offset -length -public javax.crypto.SecretKey deriveKey(javax.crypto.SecretKey secret)
secret -
public javax.crypto.SecretKey deriveKey()
throws WSSException
deriveKey(SecretKey) but gets the SecretKey by calling any registered resolversWSSException