Class RequestedAuthnContextImpl
- java.lang.Object
-
- com.sun.identity.saml2.protocol.impl.RequestedAuthnContextImpl
-
- All Implemented Interfaces:
RequestedAuthnContext
public class RequestedAuthnContextImpl extends Object implements RequestedAuthnContext
Java content class for RequestedAuthnContextType complex type.The following schema fragment specifies the expected content contained within this java content object.
<complexType name="RequestedAuthnContextType"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <choice> <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}AuthnContextClassRef" maxOccurs="unbounded"/> <element ref="{urn:oasis:names:tc:SAML:2.0:assertion}AuthnContextDeclRef" maxOccurs="unbounded"/> </choice> <attribute name="Comparison" type="{urn:oasis:names:tc:SAML:2.0:protocol}AuthnContextComparisonType" /> </restriction> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description StringelementName
-
Constructor Summary
Constructors Constructor Description RequestedAuthnContextImpl()ConstructorRequestedAuthnContextImpl(String xmlString)ConstructorRequestedAuthnContextImpl(Element element)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListgetAuthnContextClassRef()Returns the value of AuthnContextClassRef property.ListgetAuthnContextDeclRef()Returns List of String representing authentication context declaration reference.StringgetComparison()Returns the value of comparison property.booleanisMutable()Returns true if the object is mutablevoidmakeImmutable()Makes the obejct immutablevoidsetAuthnContextClassRef(List value)Sets the value of AuthnContextClassRef property.voidsetAuthnContextDeclRef(List value)Sets the value of theAuthnContextDeclRefproperty.voidsetComparison(String value)Sets the value of the comparison property.StringtoXMLString()Returns an XML Representation of this object.StringtoXMLString(boolean includeNSPrefix, boolean declareNS)Converts into an XML String.
-
-
-
Field Detail
-
elementName
public final String elementName
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RequestedAuthnContextImpl
public RequestedAuthnContextImpl()
Constructor
-
RequestedAuthnContextImpl
public RequestedAuthnContextImpl(Element element) throws SAML2Exception
Constructor- Parameters:
element- the Document Element.- Throws:
SAML2Exception- if there is an error creating this object.
-
RequestedAuthnContextImpl
public RequestedAuthnContextImpl(String xmlString) throws SAML2Exception
Constructor- Parameters:
xmlString- theRequestedAuthnContextXML String.- Throws:
SAML2Exception- if there is an error creating this object.
-
-
Method Detail
-
getAuthnContextClassRef
public List getAuthnContextClassRef()
Returns the value of AuthnContextClassRef property.- Specified by:
getAuthnContextClassRefin interfaceRequestedAuthnContext- Returns:
- List of String representing authentication context class reference.
- See Also:
setAuthnContextClassRef(List)
-
setAuthnContextClassRef
public void setAuthnContextClassRef(List value) throws SAML2Exception
Sets the value of AuthnContextClassRef property.- Specified by:
setAuthnContextClassRefin interfaceRequestedAuthnContext- Parameters:
value- List of String representing authentication context class referance.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getAuthnContextClassRef()
-
getAuthnContextDeclRef
public List getAuthnContextDeclRef()
Returns List of String representing authentication context declaration reference.- Specified by:
getAuthnContextDeclRefin interfaceRequestedAuthnContext- Returns:
- List of String representing authentication context declaration reference.
- See Also:
setAuthnContextDeclRef(List)
-
setAuthnContextDeclRef
public void setAuthnContextDeclRef(List value) throws SAML2Exception
Sets the value of theAuthnContextDeclRefproperty.- Specified by:
setAuthnContextDeclRefin interfaceRequestedAuthnContext- Parameters:
value- List of String representing authentication context declaration referance.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getAuthnContextDeclRef()
-
getComparison
public String getComparison()
Returns the value of comparison property.- Specified by:
getComparisonin interfaceRequestedAuthnContext- Returns:
- An String representing comparison method.
- See Also:
setComparison(String)
-
setComparison
public void setComparison(String value) throws SAML2Exception
Sets the value of the comparison property.- Specified by:
setComparisonin interfaceRequestedAuthnContext- Parameters:
value- An String representing comparison method.- Throws:
SAML2Exception- if the object is immutable.- See Also:
getComparison()
-
toXMLString
public String toXMLString() throws SAML2Exception
Returns an XML Representation of this object.- Specified by:
toXMLStringin interfaceRequestedAuthnContext- Returns:
- A string containing the valid XML for this element
- Throws:
SAML2Exception- if unable to get the XML string.
-
toXMLString
public String toXMLString(boolean includeNSPrefix, boolean declareNS) throws SAML2Exception
Converts into an XML String.- Specified by:
toXMLStringin interfaceRequestedAuthnContext- Parameters:
includeNSPrefix- Determines whether or not the namespace qualifier is prepended to the Element when converteddeclareNS- Determines whether or not the namespace is declared within the Element.- Returns:
- A string containing the valid XML for this element
- Throws:
SAML2Exception- if unable to get the XML string.
-
makeImmutable
public void makeImmutable()
Makes the obejct immutable- Specified by:
makeImmutablein interfaceRequestedAuthnContext
-
isMutable
public boolean isMutable()
Returns true if the object is mutable- Specified by:
isMutablein interfaceRequestedAuthnContext- Returns:
- true if the object is mutable
-
-