public class FSDiscoveryBootStrap extends Object
FSDiscoBootStrap
helps in generating the discovery
boot strap statement i.e. Discovery Resource Offering as part of the SAML
assertion that is generated during the Single Sign-On. This class checks
if there are any credentials that need to be generated for accesing
discovery service and do the needful.Constructor and Description |
---|
FSDiscoveryBootStrap(Object ssoToken,
AuthnContext authnContext,
FSSubject sub,
String userID,
String wscID,
String realm)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
AttributeStatement |
getBootStrapStatement()
Returns the bootstrap attribute statement.
|
Advice |
getCredentials()
Returns the credentials for discovery boot strap resource offering.
|
boolean |
hasCredentials()
Checks if the credentials are generated.
|
public FSDiscoveryBootStrap(Object ssoToken, AuthnContext authnContext, FSSubject sub, String userID, String wscID, String realm) throws FSException
ssoToken
- session of the user.
TODO: Currently we use the session of the user, but ideally this
be of the WSC that require credentials.authnContext
- Authentication context that the user is signed-on.sub
- Federated Subject.userID
- User's ID for which the discovery resource offering is
being obtained.wscID
- the wsc's entity IDrealm
- the realm in which the provider residesFSException
- if there is any failure.public boolean hasCredentials()
true
if the credentials are generated;
false
otherwise.public Advice getCredentials()
Advice
object that contains credentialspublic AttributeStatement getBootStrapStatement()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.