Class SAML1ActionSupport


  • public final class SAML1ActionSupport
    extends Object
    Helper methods for SAML 1 profile actions.
    • Field Detail

      • LOG

        @Nonnull
        private static final org.slf4j.Logger LOG
        Logger.
    • Constructor Detail

      • SAML1ActionSupport

        private SAML1ActionSupport()
        Constructor.
    • Method Detail

      • buildAssertion

        @Nonnull
        public static Assertion buildAssertion​(@Nonnull
                                               AbstractProfileAction action,
                                               @Nonnull
                                               IdentifierGenerationStrategy idGenerator,
                                               @Nonnull @NotEmpty
                                               String issuer)
        Constructs an Assertion using the parameters supplied, with its issue instant set to the current time.
        Parameters:
        action - the current action
        idGenerator - source of assertion ID
        issuer - value for assertion
        Returns:
        the assertion
      • addAssertionToResponse

        @Nonnull
        public static Assertion addAssertionToResponse​(@Nonnull
                                                       AbstractProfileAction action,
                                                       @Nonnull
                                                       Response response,
                                                       @Nonnull
                                                       IdentifierGenerationStrategy idGenerator,
                                                       @Nonnull @NotEmpty
                                                       String issuer)
        Constructs and adds a Assertion to the given Response. The Assertion is constructed using the parameters supplied, and its issue instant is set to the issue instant of the given Response.
        Parameters:
        action - the current action
        response - the response to which the assertion will be added
        idGenerator - source of assertion ID
        issuer - value for assertion
        Returns:
        the assertion that was added to the response