Package org.opensaml.saml.saml2.profile
Class SAML2ActionSupport
- java.lang.Object
-
- org.opensaml.saml.saml2.profile.SAML2ActionSupport
-
public final class SAML2ActionSupport extends Object
Helper methods for SAML 2 IdP actions.
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGLogger.
-
Constructor Summary
Constructors Modifier Constructor Description privateSAML2ActionSupport()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdviceaddAdviceToAssertion(AbstractProfileAction action, Assertion assertion)static AssertionaddAssertionToResponse(AbstractProfileAction action, Response response, IdentifierGenerationStrategy idGenerator, String issuer)static ConditionsaddConditionsToAssertion(AbstractProfileAction action, Assertion assertion)Creates and adds aConditionsto a givenAssertion.static AssertionbuildAssertion(AbstractProfileAction action, IdentifierGenerationStrategy idGenerator, String issuer)Constructs anAssertionusing the parameters supplied, with its issue instant set to the current time.
-
-
-
Method Detail
-
buildAssertion
@Nonnull public static Assertion buildAssertion(@Nonnull AbstractProfileAction action, @Nonnull IdentifierGenerationStrategy idGenerator, @Nullable String issuer)
Constructs anAssertionusing the parameters supplied, with its issue instant set to the current time.- Parameters:
action- the current actionidGenerator- source of assertion IDissuer- value for assertion- Returns:
- the assertion
-
addAssertionToResponse
@Nonnull public static Assertion addAssertionToResponse(@Nonnull AbstractProfileAction action, @Nonnull Response response, @Nonnull IdentifierGenerationStrategy idGenerator, @Nullable String issuer)
Constructs and adds aAssertionto the givenResponse. TheAssertionis constructed using the parameters supplied, and its issue instant is set to the issue instant of the givenResponse.- Parameters:
action- the current actionresponse- the response to which the assertion will be addedidGenerator- source of assertion IDissuer- value for assertion- Returns:
- the assertion that was added to the response
-
addConditionsToAssertion
@Nonnull public static Conditions addConditionsToAssertion(@Nonnull AbstractProfileAction action, @Nonnull Assertion assertion)
Creates and adds aConditionsto a givenAssertion. If theAssertionalready contains anConditionsthis method just returns.- Parameters:
action- current actionassertion- assertion to which the condition will be added- Returns:
- the
Conditionsthat already existed on, or the one that was added to, theAssertion
-
addAdviceToAssertion
@Nonnull public static Advice addAdviceToAssertion(@Nonnull AbstractProfileAction action, @Nonnull Assertion assertion)
-
-