Class DiscoveryBootstrap


  • public class DiscoveryBootstrap
    extends Object
    The class DiscoBootstrap helps 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.
    • 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