Class FSAssertionManagerClient
- java.lang.Object
-
- com.sun.identity.federation.services.FSAssertionManagerClient
-
public final class FSAssertionManagerClient extends Object
The classFSAssertionManagerClientis afinalclass that provides interfaces to create, get and destroyAssertions.The class provides mechanisms to manage the
Assertions either locally (i.e., within the same JVM process) or remotely on another instance of OpenAM. The default constructor will manage theAssertions locally if it detects SAML web services running locally, else will use one of the configured OpenAM. The constructor which accepts anURLwill always use the URL to manage the assertions.Having obtained an instance of
FSAssertionManagerClient, its methods can be called to create/getAssertion, andAssertionArtifact, and to obtain decision from anQuery.
-
-
Constructor Summary
Constructors Constructor Description FSAssertionManagerClient(String metaAlias)Returns an instance ofAssertionManagerClient.FSAssertionManagerClient(String metaAlias, String url)Returns an instance ofFSAssertionManagerClientthat will use the providedURLfor the management of assertions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AssertiongetAssertion(AssertionArtifact artifact, String destID)Returns assertion associated with theAssertionArtifact.protected StringgetDestIdForArtifact(AssertionArtifact artifact)Returns the destination id the artifact is created for.protected StatusgetErrorStatus(AssertionArtifact artifact)booleanisUserExists(String userDN)Checks if the user exists.
-
-
-
Constructor Detail
-
FSAssertionManagerClient
public FSAssertionManagerClient(String metaAlias) throws FSException
Returns an instance ofAssertionManagerClient.- Parameters:
metaAlias- hosted provider's meta alias.- Throws:
FSException
-
FSAssertionManagerClient
public FSAssertionManagerClient(String metaAlias, String url) throws FSException
Returns an instance ofFSAssertionManagerClientthat will use the providedURLfor the management of assertions.- Parameters:
metaAlias- hosted provider's meta alias.url- theFSAssertionManagerservice URL that will be used to create, get and deleteAssertions- Throws:
FSException
-
-
Method Detail
-
getAssertion
protected Assertion getAssertion(AssertionArtifact artifact, String destID) throws FSException
Returns assertion associated with theAssertionArtifact.- Parameters:
artifact- AnAssertionArtifact.destID- The destination site requesting the assertion using the artifact. This String is compared with the destID that the artifact is created for originally.- Returns:
- The Assertion referenced to by artifact.
- Throws:
FSException- If an error occurred during the process, or no assertion maps to the input artifact.
-
getDestIdForArtifact
protected String getDestIdForArtifact(AssertionArtifact artifact) throws FSException
Returns the destination id the artifact is created for.- Parameters:
artifact-AssertionArtifactobject- Returns:
- destination id
- Throws:
FSException- if error occurred.
-
isUserExists
public boolean isUserExists(String userDN) throws FSException
Checks if the user exists.- Parameters:
userDN- user ID- Returns:
trueif the user exists;falseotherwise.- Throws:
FSException- if error occurred.
-
getErrorStatus
protected Status getErrorStatus(AssertionArtifact artifact) throws FSException
- Throws:
FSException
-
-