Package com.sun.identity.saml2.profile
Class DiscoveryBootstrap
- java.lang.Object
-
- com.sun.identity.saml2.profile.DiscoveryBootstrap
-
public class DiscoveryBootstrap extends Object
The classDiscoBootstraphelps in generating the discovery boot strap statement i.e. Discovery Resource Offering as part of the SAML2 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeStatementgetBootstrapStatement()Gets the bootstrap attribute statementAdvicegetCredentials()Gets the credential for discovery boot strap resource offering
-
-
-
Constructor Detail
-
DiscoveryBootstrap
public DiscoveryBootstrap(Object session, Subject sub, String authnContextClassRef, String wscID, String realm) throws SAML2Exception
Constructor.- Parameters:
session- session of the user.sub- SAML2 Subject.authnContextClassRef- Authentication context class ref that the user is signed-on.wscID- wsc entity ID.realm- the realm name.- Throws:
SAML2Exception- if there is any failure.
-
-
Method Detail
-
getBootstrapStatement
public AttributeStatement getBootstrapStatement()
Gets the bootstrap attribute statement- Returns:
- AttributeStatement ResourceOffering AttributeStatement.
-
getCredentials
public Advice getCredentials() throws SAML2Exception
Gets the credential for discovery boot strap resource offering- Returns:
- Advice Credential advice
- Throws:
SAML2Exception
-
-