public final class FSAssertionManagerClient extends Object
FSAssertionManagerClient
is a final
class
that provides interfaces to create, get and destroy Assertion
s.
The class provides mechanisms to manage the Assertion
s either
locally (i.e., within the same JVM process) or remotely on another instance
of OpenAM. The default constructor will manage the
Assertion
s locally if it detects SAML web services running locally,
else will use one of the configured OpenAM. The constructor which
accepts an URL
will always use the URL to manage the assertions.
Having obtained an instance of FSAssertionManagerClient
,
its methods can be called to create/get Assertion
, and
AssertionArtifact
, and to obtain decision from an
Query
.
Constructor and Description |
---|
FSAssertionManagerClient(String metaAlias)
Returns an instance of
AssertionManagerClient . |
FSAssertionManagerClient(String metaAlias,
String url)
Returns an instance of
FSAssertionManagerClient
that will use the provided URL for the management
of assertions. |
Modifier and Type | Method and Description |
---|---|
protected Assertion |
getAssertion(AssertionArtifact artifact,
String destID)
Returns assertion associated with the
AssertionArtifact . |
protected String |
getDestIdForArtifact(AssertionArtifact artifact)
Returns the destination id the artifact is created for.
|
protected Status |
getErrorStatus(AssertionArtifact artifact) |
boolean |
isUserExists(String userDN)
Checks if the user exists.
|
public FSAssertionManagerClient(String metaAlias) throws FSException
AssertionManagerClient
.metaAlias
- hosted provider's meta alias.FSException
public FSAssertionManagerClient(String metaAlias, String url) throws FSException
FSAssertionManagerClient
that will use the provided URL
for the management
of assertions.metaAlias
- hosted provider's meta alias.url
- the FSAssertionManager
service URL that
will be used to create, get and delete Assertion
sFSException
protected Assertion getAssertion(AssertionArtifact artifact, String destID) throws FSException
AssertionArtifact
.artifact
- An AssertionArtifact
.destID
- The destination site requesting the assertion using
the artifact. This String is compared with the destID that
the artifact is created for originally.FSException
- If an error occurred during the process, or no
assertion maps to the input artifact.protected String getDestIdForArtifact(AssertionArtifact artifact) throws FSException
artifact
- AssertionArtifact
objectFSException
- if error occurred.public boolean isUserExists(String userDN) throws FSException
userDN
- user IDtrue
if the user exists; false
otherwise.FSException
- if error occurred.protected Status getErrorStatus(AssertionArtifact artifact) throws FSException
FSException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.