Interface SAML2TokenGeneration

  • All Known Implementing Classes:
    SAML2TokenGenerationImpl

    public interface SAML2TokenGeneration
    This interface defines the concerns of SAML2TokenGeneration, as exposed by the TokenGenerationService, and consumed by published STS instances, both REST and SOAP. The implementation of this interface will consult the SAML2Config of the STSInstanceConfig referenced in the invocation to determine if any custom statement providers have been registered with the published STS.
    • Method Detail

      • generate

        String generate​(SSOToken subjectToken,
                        STSInstanceState stsInstanceState,
                        TokenGenerationServiceInvocationState invocationState)
                 throws TokenCreationException
        Parameters:
        subjectToken - The SSOToken authenticating the identity of the subject of the assertion
        stsInstanceState - The STS-instance-specific state necessary to generate the assertion
        invocationState - The parameters with which the TokenGenerationService was invoked.
        Returns:
        The String representation of the assertion
        Throws:
        TokenCreationException - if the assertion could not be generated