Class FSAssertion
- java.lang.Object
-
- com.sun.identity.saml.assertion.AssertionBase
-
- com.sun.identity.saml.assertion.Assertion
-
- com.sun.identity.federation.message.FSAssertion
-
@Deprecated public class FSAssertion extends Assertion
Deprecated.since 12.0.0The classFSAssertioncreates and parses LibertyAssertionduring the Single Sign-On process. This class extends from SAML Assertion.
-
-
Field Summary
Fields Modifier and Type Field Description protected StringidDeprecated.The value of theidattribute in theAssertion.protected StringinResponseToDeprecated.The value of theInResponseToattribute in theAssertion.protected intminorVersionDeprecated.The value of theMinorVersion attribute in theAssertion.-
Fields inherited from class com.sun.identity.saml.assertion.AssertionBase
_advice, _assertionID, _conditions, _issueInstant, _issuer, _majorVersion, _minorVersion, _statements, ASSERTION_ID_ATTRIBUTE, signature, signatureString, signed, valid, validationDone, xmlString
-
-
Constructor Summary
Constructors Constructor Description FSAssertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Advice advice, Set statements, String inResponseTo)Deprecated.Constructor to create anFSAssertionobject.FSAssertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Set statements, String inResponseTo)Deprecated.Constructor to createFSAssertionobject.FSAssertion(String assertionID, String issuer, Date issueInstant, Set statements, String inResponseTo)Deprecated.Constructor to createFSAssertionobject.FSAssertion(Element assertionElement)Deprecated.Constructor to create anFSAssertionobject from the Document Element.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanaddStatement(Statement statement)Deprecated.Adds theStatementobject to the Statment's object Set.ListgetDiscoveryCredential()Deprecated.Returns the discovery service credentials from the boot strap.ElementgetDOMElement()Deprecated.Returns the Document Element for this object.StringgetID()Deprecated.Returns value ofidattribute.StringgetInResponseTo()Deprecated.Returns the value ofInResponseToattribute.intgetMinorVersion()Deprecated.Returns theMinorVersionattribute.StringgetSignatureString()Deprecated.Returns theSignaturestring.StringgetSignedXMLString()Deprecated.Returns Signed XML String.booleanisTimeValid()Deprecated.Checks validity of time in the assertion.voidparseAdvice(Element element)Deprecated.Parses the advice element to extract the SecurityAssertion.voidsetID(String id)Deprecated.Sets value ofidattribute.voidsetInResponseTo(String inResponseTo)Deprecated.Sets the value ofInResponseToattribute.voidsetMinorVersion(int version)Deprecated.Sets theMinorVersionattribute.booleansetSignature(Element elem)Deprecated.Sets theElement'ssignature.voidsignXML(String certAlias)Deprecated.Signs theAssertion.StringtoXMLString()Deprecated.Returns aXMLString representation of this object.StringtoXMLString(boolean includeNS, boolean declareNS)Deprecated.Returns aXMLString representation of this object.-
Methods inherited from class com.sun.identity.saml.assertion.Assertion
createAdvice, createAssertionIDReference, createAssertionIDReference, createAttributeStatement, createAuthenticationStatement, createAuthorizationDecisionStatement, createConditions, getAdvice, getMaxAssertionMinorVersion, getMinAssertionMinorVersion, isSignatureValid, parseAssertionElement, processUnknownElement, signXML
-
Methods inherited from class com.sun.identity.saml.assertion.AssertionBase
getAssertionID, getConditions, getIssueInstant, getIssuer, getMajorVersion, getSignature, getStatement, isSigned, setAdvice, setAssertionID, setConditions, setIssueInstant, setIssuer, setMajorVersion, toString, toString
-
-
-
-
Field Detail
-
id
protected String id
Deprecated.The value of theidattribute in theAssertion.
-
minorVersion
protected int minorVersion
Deprecated.The value of theMinorVersion attribute in theAssertion.
-
inResponseTo
protected String inResponseTo
Deprecated.The value of theInResponseToattribute in theAssertion.
-
-
Constructor Detail
-
FSAssertion
public FSAssertion(Element assertionElement) throws FSMsgException, SAMLException
Deprecated.Constructor to create anFSAssertionobject from the Document Element.- Parameters:
assertionElement- theAssertionDocument Element.- Throws:
FSMsgException- if the document element is null or cannot be retrieved.SAMLException- if the SAML Assertion version is incorrect
-
FSAssertion
public FSAssertion(String assertionID, String issuer, Date issueInstant, Set statements, String inResponseTo) throws FSMsgException, SAMLException
Deprecated.Constructor to createFSAssertionobject.- Parameters:
assertionID- theAssertionIDelement.issuer- theIssuerelement.issueInstant- theIssueInstantelement.statements- theStatementelements. List of statements that need to be added in assertion.inResponseTo- value ofInResponseToattribute in the assertion.- Throws:
FSMsgException- if the document element is null or cannot be retrieved.SAMLException- if the SAML Assertion version is incorrect.
-
FSAssertion
public FSAssertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Set statements, String inResponseTo) throws FSMsgException, SAMLException
Deprecated.Constructor to createFSAssertionobject.- Parameters:
assertionID- theAssertionIDelement.issuer- theIssuerelement.issueInstant- theIssueInstantelement.conditions- theConditionsobject.statements- theStatementelements. List of statements that need to be added in assertion.inResponseTo- value ofInResponseToattribute in the assertion.- Throws:
FSMsgException- if the document element is null or cannot be retrieved.SAMLException- if the SAML Assertion version is incorrect.
-
FSAssertion
public FSAssertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Advice advice, Set statements, String inResponseTo) throws FSMsgException, SAMLException
Deprecated.Constructor to create anFSAssertionobject.- Parameters:
assertionID- theAssertionIDelement.issuer- theIssuerelement.issueInstant- theIssueInstantelement.conditions- theConditionsobject.advice- theAdviceobject.statements- theStatementelements. List of statements that need to be added in assertion.inResponseTo- value ofInResponseToattribute in the assertion.- Throws:
FSMsgException- if the document element is null or cannot be retrieved.SAMLException- if the SAML Assertion version is incorrect.
-
-
Method Detail
-
getID
public String getID()
Deprecated.Returns value ofidattribute.- Returns:
- value of
idattribute. - See Also:
setID(String)
-
setID
public void setID(String id)
Deprecated.Sets value ofidattribute.- Parameters:
id- value ofidattribute.- See Also:
getID()
-
getMinorVersion
public int getMinorVersion()
Deprecated.Returns theMinorVersionattribute.- Overrides:
getMinorVersionin classAssertionBase- Returns:
- the
MinorVersionattribute. - See Also:
setMinorVersion(int)
-
setMinorVersion
public void setMinorVersion(int version)
Deprecated.Sets theMinorVersionattribute.- Overrides:
setMinorVersionin classAssertionBase- Parameters:
version- theMinorVersionattribute.- See Also:
getMinorVersion()
-
getDOMElement
public Element getDOMElement()
Deprecated.Returns the Document Element for this object.- Returns:
- the Document Element for this object.
-
getInResponseTo
public String getInResponseTo()
Deprecated.Returns the value ofInResponseToattribute.- Returns:
- the value of
InResponseToattribute. - See Also:
setInResponseTo(String)
-
setInResponseTo
public void setInResponseTo(String inResponseTo)
Deprecated.Sets the value ofInResponseToattribute.- Parameters:
inResponseTo- value ofInResponseToattribute.- See Also:
getInResponseTo()
-
getSignedXMLString
public String getSignedXMLString()
Deprecated.Returns Signed XML String.- Returns:
- Signed XML String.
-
getSignatureString
public String getSignatureString()
Deprecated.Returns theSignaturestring.- Returns:
- the
Signaturestring.
-
isTimeValid
public boolean isTimeValid()
Deprecated.Checks validity of time in the assertion.- Overrides:
isTimeValidin classAssertionBase- Returns:
- true if time is valid otherwise false.
-
addStatement
public boolean addStatement(Statement statement)
Deprecated.Adds theStatementobject to the Statment's object Set.- Overrides:
addStatementin classAssertionBase- Parameters:
statement- theStatementobject.- Returns:
- false if statement is null else true.
-
toXMLString
public String toXMLString() throws FSMsgException
Deprecated.Returns aXMLString representation of this object.- Returns:
- a String representation of this Object.
- Throws:
FSMsgException- if there is an error creating theXMLstring.
-
toXMLString
public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Deprecated.Returns aXMLString 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
XMLfor this object. - Throws:
FSMsgException- if there is an error creating theXMLstring.
-
signXML
public void signXML(String certAlias) throws SAMLException
Deprecated.Signs theAssertion.- Overrides:
signXMLin classAssertion- Parameters:
certAlias- the alias/name of the certificate.- Throws:
SAMLException- ifFSAssertioncannot be signed.
-
setSignature
public boolean setSignature(Element elem)
Deprecated.Sets theElement'ssignature.- Overrides:
setSignaturein classAssertionBase- Parameters:
elem- theElementobject- Returns:
- true if signature is set otherwise false
-
parseAdvice
public void parseAdvice(Element element)
Deprecated.Parses the advice element to extract the SecurityAssertion.- Parameters:
element- theAdviceElement.
-
getDiscoveryCredential
public List getDiscoveryCredential()
Deprecated.Returns the discovery service credentials from the boot strap.- Returns:
- the discovery service credentials from the boot strap.
-
-