public class AuthenticationMethod extends ACElement
AuthenticationMethod
element in the Liberty authentication context namespace (http://projectliberty.org/schemas/authctx/2002/05).authenticationContextClass
Constructor and Description |
---|
AuthenticationMethod(org.w3c.dom.Document owner, AuthenticationContextStatement acs)
Creates a new
AuthenticationMethod instance in the given document with the given authentication context. |
AuthenticationMethod(org.w3c.dom.Element element, AuthenticationContextStatement acs)
Creates a new
AuthenticationMethod object that wraps the given Element object. |
AuthenticationMethod(org.w3c.dom.Element element, java.lang.String systemId, AuthenticationContextStatement acs)
Creates a new
AuthenticationMethod object that wraps the given Element object. |
Modifier and Type | Method and Description |
---|---|
Authenticator |
getAuthenticator()
Returns the
Authenticator element for this AuthenticationMethod , or null if none has been set. |
AuthenticatorTransportProtocol |
getAuthenticatorTransportProtocol()
Returns the
AuthenticatorTransportProtocol element for this AuthenticationMethod , or null if none has been set. |
PrincipalAuthenticationMechanism |
getPrincipalAuthenticationMechanism()
Returns the
PrincipalAuthemticationMethod element for this AuthenticationMethod , or null if none has been set. |
void |
setAuthenticator(Authenticator au)
Sets the
Authenticator element for this AuthenticationMethod element, replacing any existing Authenticator element. |
void |
setAuthenticatorTransportProtocol(AuthenticatorTransportProtocol atp)
Sets the
AuthenticatorTransportProtocol element for this AuthenticationMethod element, replacing any existing AuthenticatorTransportProtocol element. |
void |
setPrincipalAuthenticationMechanism(PrincipalAuthenticationMechanism pam)
Sets the
PrincipalAuthenticationMechanism element for this AuthenticationMethod element, replacing any existing PrincipalAuthenticationMechanism element. |
getAuthenticationContextClass, setAuthenticationContextClass
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
public AuthenticationMethod(org.w3c.dom.Element element, AuthenticationContextStatement acs)
AuthenticationMethod
object that wraps the given Element object.element
- The underlying org.w3c.dom.Element
object.acs
- The authentication context for the element.public AuthenticationMethod(org.w3c.dom.Element element, java.lang.String systemId, AuthenticationContextStatement acs)
AuthenticationMethod
object that wraps the given Element object.element
- The underlying org.w3c.dom.Element
object.systemId
- The URI string system ID for the AuthenticationMethod
.acs
- The authentication context for the element.public AuthenticationMethod(org.w3c.dom.Document owner, AuthenticationContextStatement acs)
AuthenticationMethod
instance in the given document with the given authentication context.owner
- The owner document for this new element.acs
- The authentication context for this new element.public void setPrincipalAuthenticationMechanism(PrincipalAuthenticationMechanism pam) throws AuthenticationContextException
PrincipalAuthenticationMechanism
element for this AuthenticationMethod
element, replacing any existing PrincipalAuthenticationMechanism
element.id
- The PrincipalAuthenticationMechanism
element.AuthenticationContextException
- If the PrincipalAuthenticationMechanism
element is not valid for this authentication context class.public PrincipalAuthenticationMechanism getPrincipalAuthenticationMechanism()
PrincipalAuthemticationMethod
element for this AuthenticationMethod
, or null
if none has been set.public void setAuthenticator(Authenticator au) throws AuthenticationContextException
Authenticator
element for this AuthenticationMethod
element, replacing any existing Authenticator
element.id
- The Authenticator
element.AuthenticationContextException
- If the Authenticator
element is not valid for this authentication context class.public Authenticator getAuthenticator()
Authenticator
element for this AuthenticationMethod
, or null
if none has been set.public void setAuthenticatorTransportProtocol(AuthenticatorTransportProtocol atp) throws AuthenticationContextException
AuthenticatorTransportProtocol
element for this AuthenticationMethod
element, replacing any existing AuthenticatorTransportProtocol
element.id
- The AuthenticatorTransportProtocol
element.AuthenticationContextException
- If the AuthenticatorTransportProtocol
element is not valid for this authentication context class.public AuthenticatorTransportProtocol getAuthenticatorTransportProtocol()
AuthenticatorTransportProtocol
element for this AuthenticationMethod
, or null
if none has been set.