public class KerberosKeyIdentifier extends WSSKeyIdentifier
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
DEFAULT_ENCODING_TYPE
The default encoding algorithm used.
|
vt_ThumbprintSHA1| Constructor and Description |
|---|
KerberosKeyIdentifier(org.w3c.dom.Document owner)
Create a new
KerberosKeyIdentifier instance. |
KerberosKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valType)
Create a new
KerberosKeyIdentifier instance. |
KerberosKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType)
Create a new Key Identifier instance.
|
KerberosKeyIdentifier(org.w3c.dom.Element element)
Create a new
KerberosKeyIdentifier instance from the given XML element. |
KerberosKeyIdentifier(org.w3c.dom.Element element, java.lang.String systemId)
Create a new
KerberosKeyIdentifier instance from the given XML element. |
| Modifier and Type | Method and Description |
|---|---|
static void |
addResolver(KerberosKeyIdentifierResolver resolver)
Register a
KerberosKeyIdentifierResolver instance for use in key identifier resolver operations. |
protected java.lang.String |
getDefaultEncodingType()
Return the default encoding type of key identifier.
|
java.lang.Object |
getKey()
Get the underlying security token.
|
static java.util.List |
getResolvers()
Get the registered
KerberosKeyIdentifierResolvers. |
WSSecurityToken |
getSecurityToken()
Get the underlying security token.
|
addResolver, getEncodingType, getName, getThumbprint, getValue, getValueType, setEncodingType, setValue, setValueTypegetId, 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, waitgetNodeprotected static final java.lang.String DEFAULT_ENCODING_TYPE
public KerberosKeyIdentifier(org.w3c.dom.Element element)
KerberosKeyIdentifier instance from the given XML element.element - A wsse:KeyIdentifier element.
public KerberosKeyIdentifier(org.w3c.dom.Element element,
java.lang.String systemId)
KerberosKeyIdentifier instance from the given XML element.element - A wsse:KeyIdentifier element.systemId - The URI string system ID for this element.public KerberosKeyIdentifier(org.w3c.dom.Document owner)
KerberosKeyIdentifier instance.owner - A XML Document to be used as the owner document of this structure.
public KerberosKeyIdentifier(org.w3c.dom.Document owner,
java.lang.String valType)
KerberosKeyIdentifier instance.owner - A XML Document to be used as the owner document of this structure.valType - The key identifier value type.
public KerberosKeyIdentifier(org.w3c.dom.Document owner,
java.lang.String valType,
java.lang.String encType)
owner - A XML Document to be used as the owner document of this structure.valType - The value type of the key identifier.encType - The encoding type of the key identifier .public static void addResolver(KerberosKeyIdentifierResolver resolver)
KerberosKeyIdentifierResolver instance for use in key identifier resolver operations.resolver - The kerberos key identifier resolver.public static java.util.List getResolvers()
KerberosKeyIdentifierResolvers.List of registered kerberos key identifier resolvers.public WSSecurityToken getSecurityToken() throws WSSException
Relies on the KerberosKeyIdentifierResolver to obtain the Kerberos V5 AP_REQ corresponding to the Kerberos KeyIdentifier.
getSecurityToken in interface WSSecurityTokenReferenceTypegetSecurityToken in class WSSKeyIdentifierWSSException
public java.lang.Object getKey()
throws WSSException
getKey in interface WSSecurityTokenReferenceTypegetKey in class WSSKeyIdentifiernull.WSSExceptionprotected java.lang.String getDefaultEncodingType()
This is necessary to handle messages that do not contain the EncodingType attribute.
getDefaultEncodingType in class WSSKeyIdentifier