Class BuildSamlValidationSuccessMessageAction

    • Field Detail

      • log

        private final org.slf4j.Logger log
        Class logger.
      • identifierGenerationStrategy

        @Nonnull
        private final IdentifierGenerationStrategy identifierGenerationStrategy
        SAML identifier generation strategy.
      • entityID

        @Nonnull
        private final String entityID
        IdP entity ID used to set issuer field of generated assertions.
    • Constructor Detail

      • BuildSamlValidationSuccessMessageAction

        public BuildSamlValidationSuccessMessageAction​(@Nonnull
                                                       IdentifierGenerationStrategy strategy,
                                                       @Nonnull @NotEmpty
                                                       String id)
        Constructor.
        Parameters:
        strategy - SAML identifier generation strategy.
        id - IdP entity ID.
    • Method Detail

      • newSubject

        @Nonnull
        private Subject newSubject​(String identifier)
        Build a new subject.
        Parameters:
        identifier - subject identifier
        Returns:
        new subject
      • newAuthenticationStatement

        private AuthenticationStatement newAuthenticationStatement​(Instant authnInstant,
                                                                   String authnMethod,
                                                                   String principal)
        Build new authentication statement.
        Parameters:
        authnInstant - authentication instant
        authnMethod - authentication method
        principal - authenticated principal
        Returns:
        new authentication statement
      • newAttributeValue

        private XSString newAttributeValue​(String value)
        Build new attribute value.
        Parameters:
        value - attribute value
        Returns:
        new attribute value