Class FSDiscoveryBootStrap


  • public class FSDiscoveryBootStrap
    extends Object
    The class 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 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 ID
        realm - 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:
        true if the credentials are generated; false otherwise.
      • getCredentials

        public Advice getCredentials()
        Returns the credentials for discovery boot strap resource offering.
        Returns:
        Advice object that contains credentials
      • getBootStrapStatement

        public AttributeStatement getBootStrapStatement()
        Returns the bootstrap attribute statement.
        Returns:
        AttributeStatement ResourceOffering AttributeStatement.