public class WSSKeyIdentifier extends WSSElement implements WSSecurityTokenReferenceType
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
vt_ThumbprintSHA1
A KeyIdentifier ValueType identifying a Thumbprint
|
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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
X509KeyIdentifierResolvers. |
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.
|
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 vt_ThumbprintSHA1
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 .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 WSSecurityTokenReferenceTypepublic 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()
X509KeyIdentifierResolvers.List of registered X.509 key identifier resolvers.
public java.lang.Object getKey()
throws WSSException
WSSecurityTokenReferenceTypegetKey in interface WSSecurityTokenReferenceTypeKey.WSSExceptionpublic WSSecurityToken getSecurityToken() throws WSSException
WSSecurityTokenReferenceTypegetSecurityToken in interface WSSecurityTokenReferenceTypeWSSecurityToken.WSSException