public class WSSecurityTokenReference extends WSSElement implements oracle.security.xmlsec.keys.KeyInfoData
| Constructor and Description |
|---|
WSSecurityTokenReference(org.w3c.dom.Document owner)
Create a new
WSSecurityTokenReference instance from the given XML element. |
WSSecurityTokenReference(org.w3c.dom.Element element)
Create a new
WSSecurityTokenReference instance from the given XML element. |
WSSecurityTokenReference(org.w3c.dom.Element element, java.lang.String systemId)
Create a new
WSSecurityTokenReference instance from the given XML element. |
| Modifier and Type | Method and Description |
|---|---|
javax.crypto.SecretKey |
computeImpliedDerivedKeys(javax.crypto.SecretKey key)
If there no wsc:Nonce attribute, then return the key directly, otherwise compute a derived key from it, and return that
|
static WSSecurityTokenReferenceType |
createSTReference(org.w3c.dom.Element element)
Create a WSS security token reference mechanism.
|
java.lang.Integer |
getDerivedKeyLength()
Get the wsc:Length attribute, which is used for Derived Keys
|
byte[] |
getDerivedKeyNonce()
Get the wsc:Nonce attribute, which is used for Derived Keys
|
WSSecurityTokenReferenceType |
getSTReference()
Get the underlying security token reference mechanism.
|
java.lang.String |
getTokenType()
Get the TokenType attribute.
|
java.lang.String |
getType()
Get the type identifier.
|
java.lang.String |
getUsage()
Get the Usage attribute.
|
void |
setDerivedKeyLength(java.lang.Integer length)
Set the wsc:Length attribute, which is used for Derived Keys
|
void |
setDerivedKeyNonce(byte[] nonce)
Set the wsc:Nonce attribute, which is used for Derived Keys
|
void |
setSTReference(WSSecurityTokenReferenceType ref)
Set the underlying security token reference mechanism.
|
void |
setTokenType(java.lang.String tokenType)
Set the TokenType attribute.
|
void |
setUsage(java.lang.String usage)
Set the Usage attribute.
|
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, toStringXMLpublic WSSecurityTokenReference(org.w3c.dom.Element element)
WSSecurityTokenReference instance from the given XML element.element - A wsse:SecurityTokenReference element.
public WSSecurityTokenReference(org.w3c.dom.Element element,
java.lang.String systemId)
WSSecurityTokenReference instance from the given XML element.element - A wsse:SecurityTokenReference element.systemId - The URI string system ID for this element.public WSSecurityTokenReference(org.w3c.dom.Document owner)
WSSecurityTokenReference instance from the given XML element.owner - A XML Document to be used as the owner document of this structure.public void setUsage(java.lang.String usage)
usage - The wsse:Usage attribute value.public java.lang.String getUsage()
public void setTokenType(java.lang.String tokenType)
tokenType - The wsse:TokenType attribute value.public java.lang.String getTokenType()
public void setSTReference(WSSecurityTokenReferenceType ref)
ref - The WSSecurityTokenReferenceType reference mechanism element.public WSSecurityTokenReferenceType getSTReference() throws WSSException
WSSecurityTokenReferenceType.WSSExceptionpublic java.lang.String getType()
getType in interface oracle.security.xmlsec.keys.KeyInfoDatanullpublic static WSSecurityTokenReferenceType createSTReference(org.w3c.dom.Element element) throws WSSException
element - The element representing a security token reference mechanism.WSSecurityTokenReferenceType instance.WSSExceptionpublic byte[] getDerivedKeyNonce()
public void setDerivedKeyNonce(byte[] nonce)
nonce - null will remove the wsc:Nonce attributepublic java.lang.Integer getDerivedKeyLength()
public void setDerivedKeyLength(java.lang.Integer length)
length - null will remove the wsc:Length attributepublic javax.crypto.SecretKey computeImpliedDerivedKeys(javax.crypto.SecretKey key)
key -