Class FSDiscoveryBootStrap
- java.lang.Object
-
- com.sun.identity.federation.services.FSDiscoveryBootStrap
-
public class FSDiscoveryBootStrap extends Object
The classFSDiscoBootStraphelps 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 Summary
Constructors Constructor Description FSDiscoveryBootStrap(Object ssoToken, AuthnContext authnContext, FSSubject sub, String userID, String wscID, String realm)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeStatementgetBootStrapStatement()Returns the bootstrap attribute statement.AdvicegetCredentials()Returns the credentials for discovery boot strap resource offering.booleanhasCredentials()Checks if the credentials are generated.
-
-
-
Constructor Detail
-
FSDiscoveryBootStrap
public FSDiscoveryBootStrap(Object ssoToken, AuthnContext authnContext, FSSubject sub, String userID, String wscID, String realm) throws FSException
Constructor.- Parameters:
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 resides- Throws:
FSException- if there is any failure.
-
-
Method Detail
-
hasCredentials
public boolean hasCredentials()
Checks if the credentials are generated.- Returns:
trueif the credentials are generated;falseotherwise.
-
getCredentials
public Advice getCredentials()
Returns the credentials for discovery boot strap resource offering.- Returns:
Adviceobject that contains credentials
-
getBootStrapStatement
public AttributeStatement getBootStrapStatement()
Returns the bootstrap attribute statement.- Returns:
- AttributeStatement ResourceOffering AttributeStatement.
-
-