| 
Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10678-05  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
  
oracle.security.xmlsec.util.XMLNode
      
oracle.security.xmlsec.util.XMLElement
          
oracle.security.xmlsec.wss.WSSElement
              
oracle.security.xmlsec.wss.WSSecurityTokenReference
public class WSSecurityTokenReference
This class represents the WSS SecurityTokenReference element for referencing security tokens.
| Field Summary | 
|---|
| Fields inherited from class oracle.security.xmlsec.util.XMLNode | 
|---|
node, systemId | 
| Constructor Summary | |
|---|---|
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. | 
|
| Method Summary | |
|---|---|
 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.  | 
| Methods inherited from class oracle.security.xmlsec.wss.WSSElement | 
|---|
getId, getWsuId, setId, setWsuId | 
| Methods inherited from class oracle.security.xmlsec.util.XMLElement | 
|---|
addNSPrefixAttr, 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, setDefaultNSPrefix | 
| Methods inherited from class oracle.security.xmlsec.util.XMLNode | 
|---|
appendChild, 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, toStringXML | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public 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.| Method Detail | 
|---|
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.KeyInfoDatanull
public 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 -
  | 
Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10678-05  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||