|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.saml.AssertionManager
The class AssertionManager
is a final
class
that provides interfaces to create, get and destroy Assertion
s.
It is a singleton class; an instance of this class can be obtained by
calling AssertionManager.getInstance()
.
Having obtained an instance of AssertionManager
, its methods
can be called to create/get Assertion
, and
AssertionArtifact
, and to obtain decision from an
Query
.
This class could only be used in the same JVM as the Identity Server.
Method Summary | |
Assertion |
createAssertion(SSOToken token)
This method creates an Assertion that contains an AuthenticationStatement. |
Assertion |
createAssertion(SSOToken token,
java.util.List attributes)
This method creates an Assertion that contains an AuthenticationStatement and an AttributeStatement. |
AssertionArtifact |
createAssertionArtifact(Assertion assertion,
java.lang.String destID)
This method creates an AssertionArtifact for the given Assertion Assertion. |
Assertion |
getAssertion(AssertionIDReference idRef,
java.lang.String destID)
Gets the Assertion referenced by an AssertionIDReference. |
java.util.Set |
getAssertionArtifacts(SSOToken token)
This method gets all valid AssertionArtifacts managed by this AssertionManager. |
java.util.Set |
getAssertions(SSOToken token)
This method gets all valid Assertions managed by this AssertionManager. |
static AssertionManager |
getInstance()
Gets the singleton instance of AssertionManager. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static AssertionManager getInstance() throws SAMLException
SAMLException
- if unable to get the singleton
AssertionManager instancepublic Assertion createAssertion(SSOToken token) throws SAMLException
token
- The SSO token that contains authentication information which
is needed to create the AuthenticationStatement.SAMLException
- If the Assertion cannot be created.public Assertion createAssertion(SSOToken token, java.util.List attributes) throws SAMLException
token
- The SSO token that contains authentication information which
is needed to create the AuthenticationStatement for the Assertion.attributes
- A list of Attribute objects which are used to create the
AttributeStatement for the Assertion.SAMLException
- If the Assertion cannot be created.public AssertionArtifact createAssertionArtifact(Assertion assertion, java.lang.String destID) throws SAMLException
assertion
- The Assertion for which an Artifact needs to be created.destID
- The sourceID of the site for which the AssertionArtifact
is created. It is in raw String format (not Base64 encoded,
for example.) This String can be obtained from converting
the 20 bytes sequence to char Array, then from the char Array
to String.SAMLException
- If the AssertionArtifact cannot be created.public java.util.Set getAssertions(SSOToken token) throws SAMLException
token
- The SSOToken which is allowed to get all AssertionsSAMLException
- If this method can not gets all valid Assertions.public java.util.Set getAssertionArtifacts(SSOToken token) throws SAMLException
token
- The SSOToken which is allowed to get all AssertionArtifactsSAMLException
- If this method can not gets all valid AssertionArtifacts.public Assertion getAssertion(AssertionIDReference idRef, java.lang.String destID) throws SAMLException
id
- The AssertionIDReference which references to an Assertion.destID
- The destination site id requesting the assertion using
the assertion id reference. This String is compared with the
destID that the assertion is created for originally. This field
is not used (could be null) if the assertion was created
without a destID originally. This String can be obtained from
converting the 20 byte site id sequence to char array, then
a new String from the char array.SAMLException
- If an error occurred during the process; or
the assertion couldn't be found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |