|
Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10678-03 |
||||||||
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.wsc.WSCDerivedKeyToken
public abstract class WSCDerivedKeyToken
WS-SecureConversation's DerivedKeyToken element
Nested Class Summary | |
---|---|
static class |
WSCDerivedKeyToken.WSCDerivedKeyToken12 |
static class |
WSCDerivedKeyToken.WSCDerivedKeyToken13 |
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_LABEL The default label value, i.e. |
static int |
DEFAULT_LENGTH the default length, i.e. |
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
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) |
Method Summary | |
---|---|
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 |
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 |
Methods inherited from interface oracle.security.xmlsec.wss.WSSecurityToken |
---|
getNode |
Field Detail |
---|
public static final java.lang.String DEFAULT_LABEL
public static final int DEFAULT_LENGTH
Constructor Detail |
---|
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)
Method Detail |
---|
public java.lang.Object getToken() throws WSSException
WSSecurityToken
Please see sub-classes for information about the Java Object returned.
getToken
in interface WSSecurityToken
WSSException
public oracle.security.xmlsec.util.QName getTokenName()
WSSecurityToken
QName
of the security token.getTokenName
in interface WSSecurityToken
protected 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
|
Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10678-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |