Class AuthnContext
- java.lang.Object
-
- com.sun.identity.federation.message.common.AuthnContext
-
@Deprecated public class AuthnContext extends Object
Deprecated.since 12.0.0This classAuthnContextrepresents an Authentication Context for the authenticated user with a requested authn context.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringauthnContextClassRefDeprecated.protected StringauthnContextStatementRefDeprecated.protected intminorVersionDeprecated.
-
Constructor Summary
Constructors Constructor Description AuthnContext()Deprecated.Default constructorAuthnContext(String authnContextClassRef, String authnContextStatementRef)Deprecated.Constructor createsAuthnContextobject.AuthnContext(Element root)Deprecated.Constructor createsAuthnContextobject from the Document Element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetAuthnContextClassRef()Deprecated.Returns the AuthnContext Class Reference URI.StringgetAuthnContextStatementRef()Deprecated.Returns the AuthnContext Statement Reference URI.intgetMinorVersion()Deprecated.Returns theMinorVersionattribute.voidsetAuthnContextClassRef(String authnContextClassRef)Deprecated.Sets the AuthnContext Class Reference URI.voidsetAuthnContextStatementRef(String authnContextStatementRef)Deprecated.Sets AuthnContext Statement Reference URI.voidsetMinorVersion(int version)Deprecated.Sets theMinorVersion.StringtoXMLString()Deprecated.Returns the string representation of this object.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Returns a String representation of this object.StringtoXMLString(boolean includeNS, boolean declareNS, boolean includeHeader)Deprecated.Returns a String representation of this object.
-
-
-
Constructor Detail
-
AuthnContext
public AuthnContext()
Deprecated.Default constructor
-
AuthnContext
public AuthnContext(String authnContextClassRef, String authnContextStatementRef)
Deprecated.Constructor createsAuthnContextobject.- Parameters:
authnContextClassRef- Authentication Context Class Reference URIauthnContextStatementRef- Authentication Context Statement Reference URI
-
AuthnContext
public AuthnContext(Element root) throws FSMsgException
Deprecated.Constructor createsAuthnContextobject from the Document Element.- Parameters:
root- the Document Element.- Throws:
FSMsgException- on error.
-
-
Method Detail
-
getAuthnContextClassRef
public String getAuthnContextClassRef()
Deprecated.Returns the AuthnContext Class Reference URI.- Returns:
- the AuthnContext Class Reference URI.
- See Also:
setAuthnContextClassRef(java.lang.String)
-
setAuthnContextClassRef
public void setAuthnContextClassRef(String authnContextClassRef)
Deprecated.Sets the AuthnContext Class Reference URI.- Parameters:
authnContextClassRef- AuthnContext Class Ref URI.- See Also:
getAuthnContextClassRef()
-
getAuthnContextStatementRef
public String getAuthnContextStatementRef()
Deprecated.Returns the AuthnContext Statement Reference URI.- Returns:
- the AuthnContext Statement Reference URI.
- See Also:
setAuthnContextStatementRef(java.lang.String)
-
setAuthnContextStatementRef
public void setAuthnContextStatementRef(String authnContextStatementRef)
Deprecated.Sets AuthnContext Statement Reference URI.- Parameters:
authnContextStatementRef- AuthnContext Statement Ref URI.- See Also:
getAuthnContextStatementRef()
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns theMinorVersionattribute.- Returns:
- the Minor Version.
- See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int version)
Deprecated.Sets theMinorVersion.- Parameters:
version- the minor version in the assertion.- See Also:
setMinorVersion(int)
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns the string representation of this object. This method translates the response to an XML document string.- Returns:
- An XML String representing the response. NOTE: this is a complete SAML response xml string with ResponseID, MajorVersion, etc.
- Throws:
FSMsgException
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Returns a String representation of this object.- Parameters:
includeNS- : 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:
FSMsgException- if there is an error converting this object ot a string.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS, boolean includeHeader) throws FSMsgException
Deprecated.Returns a String representation of this object.- Parameters:
includeNS- 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.includeHeader- Determines whether the output include the xml declaration header.- Returns:
- a string containing the valid XML for this element
- Throws:
FSMsgException- if there is an error converting this object ot a string.
-
-