@Deprecated public class FSAssertion extends Assertion
FSAssertion
creates and parses Liberty
Assertion
during the Single Sign-On process.
This class extends from SAML Assertion.Constructor and Description |
---|
FSAssertion(Element assertionElement)
Deprecated.
Constructor to create an
FSAssertion object
from the Document Element. |
FSAssertion(String assertionID,
String issuer,
Date issueInstant,
Conditions conditions,
Advice advice,
Set statements,
String inResponseTo)
Deprecated.
Constructor to create an
FSAssertion object. |
FSAssertion(String assertionID,
String issuer,
Date issueInstant,
Conditions conditions,
Set statements,
String inResponseTo)
Deprecated.
Constructor to create
FSAssertion object. |
FSAssertion(String assertionID,
String issuer,
Date issueInstant,
Set statements,
String inResponseTo)
Deprecated.
Constructor to create
FSAssertion object. |
Modifier and Type | Method and Description |
---|---|
boolean |
addStatement(Statement statement)
Deprecated.
Adds the
Statement object to the
Statment's object Set. |
List |
getDiscoveryCredential()
Deprecated.
Returns the discovery service credentials from the boot strap.
|
Element |
getDOMElement()
Deprecated.
Returns the Document Element for this object.
|
String |
getID()
Deprecated.
Returns value of
id attribute. |
String |
getInResponseTo()
Deprecated.
Returns the value of
InResponseTo attribute. |
int |
getMinorVersion()
Deprecated.
Returns the
MinorVersion attribute. |
String |
getSignatureString()
Deprecated.
Returns the
Signature string. |
String |
getSignedXMLString()
Deprecated.
Returns Signed XML String.
|
boolean |
isTimeValid()
Deprecated.
Checks validity of time in the assertion.
|
void |
parseAdvice(Element element)
Deprecated.
Parses the advice element to extract the Security
Assertion . |
void |
setID(String id)
Deprecated.
Sets value of
id attribute. |
void |
setInResponseTo(String inResponseTo)
Deprecated.
Sets the value of
InResponseTo attribute. |
void |
setMinorVersion(int version)
Deprecated.
Sets the
MinorVersion attribute. |
boolean |
setSignature(Element elem)
Deprecated.
Sets the
Element's signature. |
void |
signXML(String certAlias)
Deprecated.
Signs the
Assertion . |
String |
toXMLString()
Deprecated.
Returns a
XML String representation of this object. |
String |
toXMLString(boolean includeNS,
boolean declareNS)
Deprecated.
Returns a
XML String representation of this object. |
createAdvice, createAssertionIDReference, createAssertionIDReference, createAttributeStatement, createAuthenticationStatement, createAuthorizationDecisionStatement, createConditions, getAdvice, getMaxAssertionMinorVersion, getMinAssertionMinorVersion, isSignatureValid, parseAssertionElement, processUnknownElement, signXML
getAssertionID, getConditions, getIssueInstant, getIssuer, getMajorVersion, getSignature, getStatement, isSigned, setAdvice, setAssertionID, setConditions, setIssueInstant, setIssuer, setMajorVersion, toString, toString
public FSAssertion(Element assertionElement) throws FSMsgException, SAMLException
FSAssertion
object
from the Document Element.assertionElement
- the Assertion
Document Element.FSMsgException
- if the document element is null
or cannot be retrieved.SAMLException
- if the SAML Assertion version is
incorrectpublic FSAssertion(String assertionID, String issuer, Date issueInstant, Set statements, String inResponseTo) throws FSMsgException, SAMLException
FSAssertion
object.assertionID
- the AssertionID
element.issuer
- the Issuer
element.issueInstant
- the IssueInstant
element.statements
- the Statement
elements.
List of statements that need to be added in assertion.inResponseTo
- value of InResponseTo
attribute in the
assertion.FSMsgException
- if the document element is null
or cannot be retrieved.SAMLException
- if the SAML Assertion version is
incorrect.public FSAssertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Set statements, String inResponseTo) throws FSMsgException, SAMLException
FSAssertion
object.assertionID
- the AssertionID
element.issuer
- the Issuer
element.issueInstant
- the IssueInstant
element.conditions
- the Conditions
object.statements
- the Statement
elements.
List of statements that need to be added in assertion.inResponseTo
- value of InResponseTo
attribute in
the assertion.FSMsgException
- if the document element is null
or cannot be retrieved.SAMLException
- if the SAML Assertion version is
incorrect.public FSAssertion(String assertionID, String issuer, Date issueInstant, Conditions conditions, Advice advice, Set statements, String inResponseTo) throws FSMsgException, SAMLException
FSAssertion
object.assertionID
- the AssertionID
element.issuer
- the Issuer
element.issueInstant
- the IssueInstant
element.conditions
- the Conditions
object.advice
- the Advice
object.statements
- the Statement
elements.
List of statements that need to be added in assertion.inResponseTo
- value of InResponseTo
attribute
in the assertion.FSMsgException
- if the document element is null
or cannot be retrieved.SAMLException
- if the SAML Assertion version is
incorrect.public String getID()
id
attribute.id
attribute.FSAssertion.setID(String)
public void setID(String id)
id
attribute.id
- value of id
attribute.FSAssertion.getID()
public int getMinorVersion()
MinorVersion
attribute.getMinorVersion
in class AssertionBase
MinorVersion
attribute.FSAssertion.setMinorVersion(int)
public void setMinorVersion(int version)
MinorVersion
attribute.setMinorVersion
in class AssertionBase
version
- the MinorVersion
attribute.FSAssertion.getMinorVersion()
public Element getDOMElement()
public String getInResponseTo()
InResponseTo
attribute.InResponseTo
attribute.FSAssertion.setInResponseTo(String)
public void setInResponseTo(String inResponseTo)
InResponseTo
attribute.inResponseTo
- value of InResponseTo
attribute.FSAssertion.getInResponseTo()
public String getSignedXMLString()
public String getSignatureString()
Signature
string.Signature
string.public boolean isTimeValid()
isTimeValid
in class AssertionBase
public boolean addStatement(Statement statement)
Statement
object to the
Statment's object Set.addStatement
in class AssertionBase
statement
- the Statement
object.public String toXMLString() throws FSMsgException
XML
String representation of this object.FSMsgException
- if there is an error creating
the XML
string.public String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
XML
String representation of this object.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.XML
for this object.FSMsgException
- if there is an error creating
the XML
string.public void signXML(String certAlias) throws SAMLException
Assertion
.signXML
in class Assertion
certAlias
- the alias/name of the certificate.SAMLException
- if FSAssertion
cannot be signed.public boolean setSignature(Element elem)
Element's
signature.setSignature
in class AssertionBase
elem
- the Element
objectpublic void parseAdvice(Element element)
Assertion
.element
- the Advice
Element.public List getDiscoveryCredential()
Copyright © 2010-2018, ForgeRock All Rights Reserved.