|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.identity.saml.assertion.Assertion com.sun.identity.federation.message.FSAssertion
The class FSAssertion
creates and parses Liberty Assertion
during the Single Sign-On process. This class extends from SAML
Assertion.
Constructor Summary | |
FSAssertion(org.w3c.dom.Element assertionElement)
Constructor to create an FSAssertion from the DOM Element |
|
FSAssertion(java.lang.String assertionID,
java.lang.String issuer,
java.util.Date issueInstant,
Conditions conditions,
Advice advice,
java.util.Set statements,
java.lang.String inResponseTo)
Constructor to create an FSAssertion |
|
FSAssertion(java.lang.String assertionID,
java.lang.String issuer,
java.util.Date issueInstant,
Conditions conditions,
java.util.Set statements,
java.lang.String inResponseTo)
Constructor to create an FSAssertion |
|
FSAssertion(java.lang.String assertionID,
java.lang.String issuer,
java.util.Date issueInstant,
java.util.Set statements,
java.lang.String inResponseTo)
Constructor to create an FSAssertion |
Method Summary | |
boolean |
addStatement(Statement statement)
Adds a statement to this Assertion. |
java.util.List |
getDiscoveryCredential()
Gets the discovery service credentials from the boot strap. |
org.w3c.dom.Element |
getDOMElement()
Gets original DOM Element used to construct the Assertion. |
java.lang.String |
getID()
Gets id attribute, this applies to ID-FF 1.1 only. |
java.lang.String |
getInResponseTo()
Gets inResponseTo attribute. |
int |
getMinorVersion()
Gets minor version attribute. |
java.lang.String |
getSignatureString()
Gets XML Signature Element as String. |
java.lang.String |
getSignedXMLString()
Gets signed Assertion as XML String. |
boolean |
isTimeValid()
Gets the validity of the assertion evaluating its conditions if specified. |
void |
setID(java.lang.String id)
Sets id attribute, this applies to ID-FF 1.1 only. |
void |
setInResponseTo(java.lang.String inResponseTo)
Sets inResponseTo attribute. |
void |
setMinorVersion(int version)
Sets minor version attribute. |
boolean |
setSignature(org.w3c.dom.Element elem)
Sets the Signature element |
void |
signXML(java.lang.String certAlias)
Signs the Assertion. |
java.lang.String |
toXMLString()
Gets XML string representation of the Assertion . |
java.lang.String |
toXMLString(boolean includeNS,
boolean declareNS)
Gets XML string representation of the Assertion . |
Methods inherited from class com.sun.identity.saml.assertion.Assertion |
getAdvice, getAssertionID, getConditions, getIssueInstant, getIssuer, getMajorVersion, getSignature, getStatement, isSignatureValid, isSigned, setAdvice, setConditions, setMajorVersion, signXML, toString, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FSAssertion(org.w3c.dom.Element assertionElement) throws FSMsgException, SAMLException
assertionElement
- Assertion Element
FSMsgException
- for Federation processing fail
SAMLException
- for SAML Assertion processing failpublic FSAssertion(java.lang.String assertionID, java.lang.String issuer, java.util.Date issueInstant, java.util.Set statements, java.lang.String inResponseTo) throws FSMsgException, SAMLException
assertionID
- Assertion IDissuer
- Assertion IssuerissueInstant
- Issue Date Instantstatements
- List of statements that need to be added in assertion.inResponseTo
- In Response To RequestID
SAMLException
- if unable to construct the object
FSMsgException
- if unable to construct the objectpublic FSAssertion(java.lang.String assertionID, java.lang.String issuer, java.util.Date issueInstant, Conditions conditions, java.util.Set statements, java.lang.String inResponseTo) throws FSMsgException, SAMLException
assertionID
- Assertion IDissuer
- Assertion IssuerissueInstant
- Issue Date Instantconditions
- Conditionsstatements
- List of statements that need to be added in assertion.inResponseTo
- In Response To RequestID
FSMsgException
- if unable to construct the object
SAMLException
- if unable to construct the objectpublic FSAssertion(java.lang.String assertionID, java.lang.String issuer, java.util.Date issueInstant, Conditions conditions, Advice advice, java.util.Set statements, java.lang.String inResponseTo) throws FSMsgException, SAMLException
assertionID
- Assertion IDissuer
- Assertion IssuerissueInstant
- Issue Date Instantconditions
- Conditionsadvice
- Advicestatements
- List of statements that need to be added in assertion.inResponseTo
- In Response To RequestID
SAMLException
- if unable to construct the object
FSMsgException
- if unable to construct the objectMethod Detail |
public java.lang.String getID()
public void setID(java.lang.String id)
id
- attribute to be set.public int getMinorVersion()
getMinorVersion
in class Assertion
public void setMinorVersion(int version)
setMinorVersion
in class Assertion
version
- minor version to be set.public org.w3c.dom.Element getDOMElement()
public java.lang.String getInResponseTo()
public void setInResponseTo(java.lang.String inResponseTo)
inResponseTo
- attribute to be set.public java.lang.String getSignedXMLString()
FSAssertion
is
not signed.public java.lang.String getSignatureString()
FSAssertion
is not signed.public boolean isTimeValid()
isTimeValid
in class Assertion
public boolean addStatement(Statement statement)
addStatement
in class Assertion
statement
- Statement
to be added
public java.lang.String toXMLString() throws FSMsgException
Assertion
.
FSMsgException
- if unable to convert to XML stringpublic java.lang.String toXMLString(boolean includeNS, boolean declareNS) throws FSMsgException
Assertion
.
includeNS
- include namespace prefix if true.declareNS
- include namespace definition if true.
FSMsgException
- if unable to convert to XML stringpublic void signXML(java.lang.String certAlias) throws SAMLException
signXML
in class Assertion
certAlias
- certification Alias used to sign Assertion.
SAMLException
- if unable to sign the Assertion.public boolean setSignature(org.w3c.dom.Element elem)
setSignature
in class Assertion
elem
- Signature element to be set.
public java.util.List getDiscoveryCredential()
com.sun.identity.liberty.ws.security.SecurityAssertion
objects
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |