public final class FSAssertionManager extends Object
Modifier and Type | Field and Description |
---|---|
static Stats |
artStats
Statistics instance for artifacts.
|
static Stats |
assrtStats
Statistics instance for assertions.
|
Modifier and Type | Method and Description |
---|---|
FSAssertion |
createFSAssertion(String id,
AssertionArtifact artifact,
String realm,
String spEntityID,
NameIdentifier spHandle,
NameIdentifier idpHandle,
String inResponseTo,
int assertionMinorVersion)
Creates an assertion artifact.
|
AssertionArtifact |
createFSAssertionArtifact(String id,
String realm,
String spEntityID,
NameIdentifier spHandle,
NameIdentifier idpHandle,
String inResponseTo,
int minorVersion)
Creates an assertion artifact.
|
Map |
getArtIdMap()
Returns artifact to assertion ID map.
|
Assertion |
getAssertion(AssertionArtifact artifact,
String destID)
Retrieves the assertion associated with an artifact.
|
String |
getDestIdForArtifact(AssertionArtifact artifact)
Finds the destination id for whom the artifact is issued for.
|
String |
getEntityId()
Returns hosted provider Entity ID.
|
Status |
getErrorStatus(AssertionArtifact aa)
Retrieve the original status of a reference artifact.
|
Map |
getIdEntryMap()
Returns assertion ID to
Entry object map. |
static FSAssertionManager |
getInstance(String metaAlias)
Returns a
FSAssertionManager instance. |
String |
getMetaAlias()
Returns hosted provider meta alias.
|
String |
getRealm()
Returns the realm which hosted provider resides.
|
void |
setEntityId(String entityId)
Sets hosted provider Entity ID.
|
void |
setErrStatus(AssertionArtifact aa,
Status s)
Store the status of a given artifact (original error)
|
void |
setMetaAlias(String metaAlias)
Sets hosted provider meta alias.
|
void |
setRealm(String realm)
Sets the realm which hosted provider resides.
|
public static Stats artStats
public static Stats assrtStats
public String getMetaAlias()
setMetaAlias(String)
public void setMetaAlias(String metaAlias)
metaAlias
- hosted provider meta aliasgetMetaAlias()
public String getRealm()
setRealm(String)
public void setRealm(String realm)
realm
- The realm which hosted provider residesgetRealm()
public String getEntityId()
setEntityId(String)
public void setEntityId(String entityId)
entityId
- hosted provider Entity IDgetEntityId()
public Map getArtIdMap()
public Map getIdEntryMap()
Entry
object map.Entry
object mappublic static FSAssertionManager getInstance(String metaAlias) throws FSException
FSAssertionManager
instance.metaAlias
- hosted entity IDFSAssertionManager
instance.FSException
- if error occurrs.public AssertionArtifact createFSAssertionArtifact(String id, String realm, String spEntityID, NameIdentifier spHandle, NameIdentifier idpHandle, String inResponseTo, int minorVersion) throws FSException, SAMLException
id
- session IDrealm
- the realm in which the provider residesspEntityID
- service provider's entity IDspHandle
- service provider issued NameIdentifier
idpHandle
- identity provider issued NameIdentifier
inResponseTo
- value to InResponseTo attribute. It's the request ID.minorVersion
- request minor version, used to determine assertion's
minor versionFSException,SAMLException
- if error occurrsFSException
SAMLException
public FSAssertion createFSAssertion(String id, AssertionArtifact artifact, String realm, String spEntityID, NameIdentifier spHandle, NameIdentifier idpHandle, String inResponseTo, int assertionMinorVersion) throws FSException, SAMLException
id
- session IDartifact
- assertion artifactrealm
- the realm under which the entity resides.spEntityID
- service provider's entity IDspHandle
- service provider issued NameIdentifier
idpHandle
- identity provider issued NameIdentifier
inResponseTo
- value to InResponseTo attribute. It's the request ID.assertionMinorVersion
- minor version the assertion should useFSException,SAMLException
- if error occurrsFSException
SAMLException
public Assertion getAssertion(AssertionArtifact artifact, String destID) throws FSException
artifact
- assertion artifactdestID
- destination ID of the site who sent the requestFSException
- if the assertion could not be retrievedpublic String getDestIdForArtifact(AssertionArtifact artifact) throws FSException
artifact
- assertion artifactFSException
- if error occurrspublic void setErrStatus(AssertionArtifact aa, Status s)
aa
- reference artifacts
- stored statuspublic Status getErrorStatus(AssertionArtifact aa)
aa
- reference artifactCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.