org.openliberty.xmltooling.sasl
Class SASLRequest

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.signature.AbstractSignableXMLObject
          extended by org.openliberty.xmltooling.sasl.SASLRequest
All Implemented Interfaces:
org.opensaml.xml.AttributeExtensibleXMLObject, org.opensaml.xml.signature.SignableXMLObject, org.opensaml.xml.XMLObject

public class SASLRequest
extends org.opensaml.xml.signature.AbstractSignableXMLObject
implements org.opensaml.xml.AttributeExtensibleXMLObject

Author:
tguion

Field Summary
private  java.lang.String advisoryAuthnID
          The advisoryAuthnID may be used to advise the server what authentication identity will be asserted by the client via the selected SASL mechanism; i.e., it is a "hint." The advisoryAuthnID provides a means for server implementations to optimize their behavior on a per authentication identity basis.
static java.lang.String ADVISORYAUTHNID_ATTRIB_NAME
          Name for the attribute which defines the advisoryAuthnID.
private  java.lang.String authzID
          The authzID, also known as user identifier or username or Principal, that the client wishes to establish as the "authorization identity" per [RFC4422].
static java.lang.String AUTHZID_ATTRIB_NAME
          Name for the attribute which defines the authzID.
private  Data data
          base64Binary data
static java.lang.String DEFAULT_ELEMENT_LOCAL_NAME
           
static javax.xml.namespace.QName DEFAULT_ELEMENT_NAME
          Default element name.
private  org.opensaml.saml2.common.Extensions extensions
          Extensions child elements (see org.opensaml.saml2.core.impl.RequestAbstractTypeImpl)
private  java.lang.String mechanism
          Used to convey a list of one-or-more client-supported SASL mechanism names to the server, or to signal the server if the client wishes to abort the exchange.
static java.lang.String MECHANISM_ATTRIB_NAME
          Name for the attribute which defines the mechanism.
private  org.opensaml.xml.util.AttributeMap otherAttributes
           
private  org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext
           
 
Constructor Summary
SASLRequest(java.lang.String namespaceURI, java.lang.String elementLocalName, java.lang.String namespacePrefix)
           
 
Method Summary
 java.lang.String getAdvisoryAuthnID()
           
 java.lang.String getAuthzID()
           
 Data getData()
           
 org.opensaml.saml2.common.Extensions getExtensions()
           
 java.lang.String getMechanism()
           
 java.util.List<org.opensaml.xml.XMLObject> getOrderedChildren()
           
 org.opensaml.saml2.core.RequestedAuthnContext getRequestedAuthnContext()
           
 org.opensaml.xml.util.AttributeMap getUnknownAttributes()
           
 void setAdvisoryAuthnID(java.lang.String advisoryAuthnID)
           
 void setAuthzID(java.lang.String authzID)
           
 void setData(Data data)
           
 void setExtensions(org.opensaml.saml2.common.Extensions newExtensions)
           
 void setMechanism(java.lang.String mechanism)
           
 void setRequestedAuthnContext(org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext)
           
 
Methods inherited from class org.opensaml.xml.signature.AbstractSignableXMLObject
getSignature, isSigned, setSignature
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

DEFAULT_ELEMENT_LOCAL_NAME

public static java.lang.String DEFAULT_ELEMENT_LOCAL_NAME

DEFAULT_ELEMENT_NAME

public static final javax.xml.namespace.QName DEFAULT_ELEMENT_NAME
Default element name.


MECHANISM_ATTRIB_NAME

public static final java.lang.String MECHANISM_ATTRIB_NAME
Name for the attribute which defines the mechanism.

See Also:
Constant Field Values

AUTHZID_ATTRIB_NAME

public static final java.lang.String AUTHZID_ATTRIB_NAME
Name for the attribute which defines the authzID.

See Also:
Constant Field Values

ADVISORYAUTHNID_ATTRIB_NAME

public static final java.lang.String ADVISORYAUTHNID_ATTRIB_NAME
Name for the attribute which defines the advisoryAuthnID.

See Also:
Constant Field Values

mechanism

private java.lang.String mechanism
Used to convey a list of one-or-more client-supported SASL mechanism names to the server, or to signal the server if the client wishes to abort the exchange. It is included on all messages sent by the client. [Required]


authzID

private java.lang.String authzID
The authzID, also known as user identifier or username or Principal, that the client wishes to establish as the "authorization identity" per [RFC4422]. [Optional]


advisoryAuthnID

private java.lang.String advisoryAuthnID
The advisoryAuthnID may be used to advise the server what authentication identity will be asserted by the client via the selected SASL mechanism; i.e., it is a "hint." The advisoryAuthnID provides a means for server implementations to optimize their behavior on a per authentication identity basis. E.g. if a client requests to execute a certain SASL mechanism on behalf of some given authentication identity (represented by advisoryAuthnID) and authorization identity (represented by authzID) pair, the server can decide whether to proceed without having to execute the SASL mechanism (execution of which might involve more than a single round-trip). Server implementations that make use of the optional advisoryAuthnID attribute SHOULD be capable of processing initial messages that do not include the advisoryAuthnID attribute. [Optional]


otherAttributes

private org.opensaml.xml.util.AttributeMap otherAttributes

data

private Data data
base64Binary data


requestedAuthnContext

private org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext

extensions

private org.opensaml.saml2.common.Extensions extensions
Extensions child elements (see org.opensaml.saml2.core.impl.RequestAbstractTypeImpl)

Constructor Detail

SASLRequest

public SASLRequest(java.lang.String namespaceURI,
                   java.lang.String elementLocalName,
                   java.lang.String namespacePrefix)
Parameters:
namespaceURI -
elementLocalName -
namespacePrefix -
Method Detail

getAdvisoryAuthnID

public java.lang.String getAdvisoryAuthnID()
Returns:
the advisoryAuthnID

setAdvisoryAuthnID

public void setAdvisoryAuthnID(java.lang.String advisoryAuthnID)
Parameters:
advisoryAuthnID - the advisoryAuthnID to set

getAuthzID

public java.lang.String getAuthzID()
Returns:
the authzID

setAuthzID

public void setAuthzID(java.lang.String authzID)
Parameters:
authzID - the authzID to set

getData

public Data getData()
Returns:
the data

setData

public void setData(Data data)
Parameters:
data - the data to set

getMechanism

public java.lang.String getMechanism()
Returns:
the mechanism

setMechanism

public void setMechanism(java.lang.String mechanism)
Parameters:
mechanism - the mechanism to set

getRequestedAuthnContext

public org.opensaml.saml2.core.RequestedAuthnContext getRequestedAuthnContext()
Returns:
the requestedAuthnContext

setRequestedAuthnContext

public void setRequestedAuthnContext(org.opensaml.saml2.core.RequestedAuthnContext requestedAuthnContext)
Parameters:
requestedAuthnContext - the requestedAuthnContext to set

getExtensions

public org.opensaml.saml2.common.Extensions getExtensions()

setExtensions

public void setExtensions(org.opensaml.saml2.common.Extensions newExtensions)

getUnknownAttributes

public org.opensaml.xml.util.AttributeMap getUnknownAttributes()
Specified by:
getUnknownAttributes in interface org.opensaml.xml.AttributeExtensibleXMLObject

getOrderedChildren

public java.util.List<org.opensaml.xml.XMLObject> getOrderedChildren()
Specified by:
getOrderedChildren in interface org.opensaml.xml.XMLObject