public class SAMLAssertionKeyIdentifier extends WSSKeyIdentifier
vt_ThumbprintSHA1
Constructor and Description |
---|
SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner)
Create a new
SAMLAssertionKeyIdentifier instance. |
SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner, byte[] assertionId)
Create a new
SAMLAssertionKeyIdentifier instance. |
SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner, byte[] assertionId, java.lang.String valueType)
Create a new
SAMLAssertionKeyIdentifier instance. |
SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valueType)
Create a new
SAMLAssertionKeyIdentifier instance. |
SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner, java.lang.String assertionId, java.lang.String valueType)
Create a new
SAMLAssertionKeyIdentifier instance. |
SAMLAssertionKeyIdentifier(org.w3c.dom.Element element)
Create a new
SAMLAssertionKeyIdentifier instance from the given XML element. |
SAMLAssertionKeyIdentifier(org.w3c.dom.Element element, java.lang.String systemId)
Create a new
SAMLAssertionKeyIdentifier instance from the given XML element. |
Modifier and Type | Method and Description |
---|---|
static void |
addResolver(SAMLAssertionKeyIdentifierResolver resolver)
Register the
SAMLAssertionKeyIdentifierResolver instance for use in keyidentifier resolver operations. |
AuthorityBinding |
getAuthorityBinding()
Get the associated SAML AuthorityBinding.
|
protected java.lang.String |
getDefaultEncodingType()
Return the default encoding type of key identifier.
|
java.lang.Object |
getKey()
Returns the key (symmetric or asymmetric) corresponding to the underlying WSS SecurityToken.
|
java.security.PrivateKey |
getPrivateKey()
Get the underlying WSSecurity Token.
|
java.security.cert.X509Certificate |
getPublicKey()
Get the underlying WSSecurity Token.
|
static java.util.List |
getResolvers()
Get the list of registered
SAMLAssertionKeyIdentifierResolver s. |
WSSecurityToken |
getSecurityToken()
Get the underlying WSSecurity Token.
|
void |
setAuthorityBinding(AuthorityBinding authorityBinding)
Set the associated SAML AuthorityBinding.
|
addResolver, getEncodingType, getName, getThumbprint, getValue, getValueType, setEncodingType, 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 SAMLAssertionKeyIdentifier(org.w3c.dom.Element element)
SAMLAssertionKeyIdentifier
instance from the given XML element.element
- A wsse:KeyIdentifier element.public SAMLAssertionKeyIdentifier(org.w3c.dom.Element element, java.lang.String systemId)
SAMLAssertionKeyIdentifier
instance from the given XML element.element
- A wsse:KeyIdentifier element.systemId
- The URI string system ID for this element.public SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner)
SAMLAssertionKeyIdentifier
instance.owner
- A XML Document to be used as the owner document of this structure.public SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner, byte[] assertionId)
SAMLAssertionKeyIdentifier
instance.owner
- A XML Document to be used as the owner document of this structure.assertionId
- The assertion identifier.public SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner, java.lang.String valueType)
SAMLAssertionKeyIdentifier
instance.owner
- A XML Document to be used as the owner document of this structure.valueType
- The key identifier data value type.public SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner, byte[] assertionId, java.lang.String valueType)
SAMLAssertionKeyIdentifier
instance.owner
- A XML Document to be used as the owner document of this structure.assertionId
- The assertion identifier.valueType
- The identifier data value type.public SAMLAssertionKeyIdentifier(org.w3c.dom.Document owner, java.lang.String assertionId, java.lang.String valueType)
SAMLAssertionKeyIdentifier
instance.owner
- A XML Document to be used as the owner document of this structure.assertionId
- The assertion identifier.valueType
- The optional identifier data value type.public static void addResolver(SAMLAssertionKeyIdentifierResolver resolver)
SAMLAssertionKeyIdentifierResolver
instance for use in keyidentifier resolver operations.resolver
- The SAML assertion key identifier resolver.public static java.util.List getResolvers()
SAMLAssertionKeyIdentifierResolver
s.public void setAuthorityBinding(AuthorityBinding authorityBinding)
This is required for V1.1 SAML Assertion Tokens.
authorityBinding
- The associated saml:AuthorityBinding.public AuthorityBinding getAuthorityBinding()
public WSSecurityToken getSecurityToken() throws WSSException
getSecurityToken
in interface WSSecurityTokenReferenceType
getSecurityToken
in class WSSKeyIdentifier
WSSException
public java.security.cert.X509Certificate getPublicKey() throws WSSException
WSSException
public java.security.PrivateKey getPrivateKey() throws WSSException
WSSException
public java.lang.Object getKey() throws WSSException
**** NOT IMPLEMENTED ****
getKey
in interface WSSecurityTokenReferenceType
getKey
in class WSSKeyIdentifier
Key
.WSSException
protected java.lang.String getDefaultEncodingType()
This is necessary to handle messages that do not contain the EncodingType attribute.
getDefaultEncodingType
in class WSSKeyIdentifier