|
Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10678-04 |
||||||||
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.WSSKeyIdentifier
public class WSSKeyIdentifier
The base class for wsse:KeyIdentifier that is used within a wsse:SecurityTokenReference element to reference a security token using an opaque identifier.
Field Summary | |
---|---|
static java.lang.String |
vt_ThumbprintSHA1 A KeyIdentifier ValueType identifying a Thumbprint |
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
WSSKeyIdentifier(org.w3c.dom.Document owner) Create a new WSSKeyIdentifier instance. |
|
WSSKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valType) Create a new WSSKeyIdentifier instance. |
|
WSSKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType) Create a new WSSKeyIdentifier instance. |
|
WSSKeyIdentifier(org.w3c.dom.Element element) Create a new WSSKeyIdentifier instance from the given XML element. |
|
WSSKeyIdentifier(org.w3c.dom.Element element, java.lang.String systemId) Create a new WSSKeyIdentifier instance from the given XML element. |
Method Summary | |
---|---|
static void |
addResolver(WSSKeyIdentifierResolver resolver) Register a X509KeyIdentifierResolver instance for use in key identifier resolver operations. |
protected java.lang.String |
getDefaultEncodingType() Return the default encoding type of key identifier. |
java.lang.String |
getEncodingType() Get the encoding type of key identifier. |
java.lang.Object |
getKey() Returns the key (symmetric or asymmetric) corresponding to the underlying WSS SecurityToken. |
oracle.security.xmlsec.util.QName |
getName() Get the name of the security token reference. |
static java.util.List |
getResolvers() Get the registered X509KeyIdentifierResolver s. |
WSSecurityToken |
getSecurityToken() Returns the underlying WSS SecurityToken. |
byte[] |
getThumbprint() Return the Thumbprint bytes Normally this returns the value contained in this key identifier if the valueType is #ThumbprintSHA1. |
byte[] |
getValue() Get the key identifier value. |
java.lang.String |
getValueType() Get the type of key identifier. |
void |
setEncodingType(java.lang.String encType) Set the encoding type of key identifier. |
void |
setValue(byte[] value) Set the key identifier value. |
void |
setValueType(java.lang.String valType) Set the type of key identifier. |
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.WSSecurityTokenReferenceType |
---|
getNode |
Field Detail |
---|
public static final java.lang.String vt_ThumbprintSHA1
Constructor Detail |
---|
public WSSKeyIdentifier(org.w3c.dom.Element element)
WSSKeyIdentifier
instance from the given XML element.
element
- A wsse:KeyIdentifier element.public WSSKeyIdentifier(org.w3c.dom.Element element, java.lang.String systemId)
WSSKeyIdentifier
instance from the given XML element.
element
- A wsse:KeyIdentifier element.systemId
- The URI string system ID for this element.public WSSKeyIdentifier(org.w3c.dom.Document owner)
WSSKeyIdentifier
instance.
owner
- A XML Document to be used as the owner document of this structure.public WSSKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valType)
WSSKeyIdentifier
instance.
owner
- A XML Document to be used as the owner document of this structure.valType
- The type of key identifier.public WSSKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType)
WSSKeyIdentifier
instance.
owner
- A XML Document to be used as the owner document of this structure.valType
- The type of key identifier.encType
- The encoding type of key identifier .Method Detail |
---|
public void setValueType(java.lang.String valType)
valType
- The key identifier value type.public java.lang.String getValueType()
public void setEncodingType(java.lang.String encType)
encType
- The key identifier encoding type.public java.lang.String getEncodingType()
protected java.lang.String getDefaultEncodingType()
This is necessary to handle messages that do not contain the EncodingType attribute.
public void setValue(byte[] value)
The identifier bytes will be encoded.
value
- The key identifier bytes.public byte[] getValue()
public oracle.security.xmlsec.util.QName getName()
getName
in interface WSSecurityTokenReferenceType
public byte[] getThumbprint()
public static void addResolver(WSSKeyIdentifierResolver resolver)
X509KeyIdentifierResolver
instance for use in key identifier resolver operations.resolver
- The X.509 key identifier resolver.public static java.util.List getResolvers()
X509KeyIdentifierResolver
s.List
of registered X.509 key identifier resolvers.public java.lang.Object getKey() throws WSSException
WSSecurityTokenReferenceType
getKey
in interface WSSecurityTokenReferenceType
Key
.WSSException
public WSSecurityToken getSecurityToken() throws WSSException
WSSecurityTokenReferenceType
getSecurityToken
in interface WSSecurityTokenReferenceType
WSSecurityToken
.WSSException
|
Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10678-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |