public class KerberosBinarySecurityToken extends WSSBinarySecurityToken
DEFAULT_ENCODING_TYPE
Constructor and Description |
---|
KerberosBinarySecurityToken(org.w3c.dom.Document owner)
Create a new
KerberosSecurityToken instance. |
KerberosBinarySecurityToken(org.w3c.dom.Document owner, java.lang.String encType)
Create a new
KerberosSecurityToken instance. |
KerberosBinarySecurityToken(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType)
Create a new
KerberosSecurityToken instance. |
KerberosBinarySecurityToken(org.w3c.dom.Element kbdv5APREQElement)
Create a new
KerberosSecurityToken instance from the given XML element. |
KerberosBinarySecurityToken(org.w3c.dom.Element kbdv5APREQElement, java.lang.String systemId)
Create a new
KerberosSecurityToken instance from the given XML element. |
Modifier and Type | Method and Description |
---|---|
static void |
addKerberosKeyRetriever(KerberosKeyRetriever resolver) |
boolean |
equals(byte[] apreqBytes)
Checks if the Kerberos V5 AP_REQ stored in this structure is the same as the given one.
|
javax.crypto.SecretKey |
getKey()
Call any registered KerberosKeyRetriever callbacks to decrypt get the key associated with this apReq packet.
|
java.lang.Object |
getToken()
Get the token contents.
|
static void |
removeKerberosKeyRetriever(KerberosKeyRetriever resolver) |
void |
setToken(java.lang.Object apreqBytes)
Set the token contents.
|
getEncodingType, getTokenName, getValue, getValueType, setValue, setValueType
getId, getWsuId, setId, setWsuId
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
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
public KerberosBinarySecurityToken(org.w3c.dom.Element kbdv5APREQElement)
KerberosSecurityToken
instance from the given XML element.kbdv5APREQElement
- A Kerberos V5 AP_REQ token.public KerberosBinarySecurityToken(org.w3c.dom.Element kbdv5APREQElement, java.lang.String systemId)
KerberosSecurityToken
instance from the given XML element.kbdv5APREQElement
- A Kerberos V5 AP_REQ token.systemId
- The URI string system ID for this element.public KerberosBinarySecurityToken(org.w3c.dom.Document owner)
KerberosSecurityToken
instance.owner
- A XML Document to be used as the owner document of this structure.public KerberosBinarySecurityToken(org.w3c.dom.Document owner, java.lang.String encType)
KerberosSecurityToken
instance.owner
- A XML Document to be used as the owner document of this structure.encType
- The String
indicating the encoding type.public KerberosBinarySecurityToken(org.w3c.dom.Document owner, java.lang.String valType, java.lang.String encType)
KerberosSecurityToken
instance.owner
- A XML Document to be used as the owner document of this structure.valType
- The String
indicating the value type.encType
- The String
indicating the encoding type.public void setToken(java.lang.Object apreqBytes)
setToken
in class WSSBinarySecurityToken
apreqBytes
- The raw bytes of the Kerberos AP_REQ.public java.lang.Object getToken() throws WSSException
getToken
in interface WSSecurityToken
getToken
in class WSSBinarySecurityToken
WSSException
public boolean equals(byte[] apreqBytes)
apreqBytes
- The Kerberos V5 AP_REQ token bytes to compare.true
if the raw bytes match or false
otherwise.public static void addKerberosKeyRetriever(KerberosKeyRetriever resolver)
public static void removeKerberosKeyRetriever(KerberosKeyRetriever resolver)
public javax.crypto.SecretKey getKey()