Package org.opensaml.saml.saml1.profile
Class SAML1ActionSupport
- java.lang.Object
-
- org.opensaml.saml.saml1.profile.SAML1ActionSupport
-
public final class SAML1ActionSupport extends Object
Helper methods for SAML 1 profile actions.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SAML1ActionSupport()
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Assertion
addAssertionToResponse(org.opensaml.profile.action.AbstractProfileAction action, Response response, net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy idGenerator, String issuer)
static Conditions
addConditionsToAssertion(org.opensaml.profile.action.AbstractProfileAction action, Assertion assertion)
Creates and adds aConditions
to a givenAssertion
.static Assertion
buildAssertion(org.opensaml.profile.action.AbstractProfileAction action, net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy idGenerator, String issuer)
Constructs anAssertion
using the parameters supplied, with its issue instant set to the current time.private static org.slf4j.Logger
getLogger()
Gets the logger for this class.
-
-
-
Method Detail
-
buildAssertion
@Nonnull public static Assertion buildAssertion(@Nonnull org.opensaml.profile.action.AbstractProfileAction action, @Nonnull net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy idGenerator, @Nonnull @NotEmpty String issuer)
Constructs anAssertion
using 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 org.opensaml.profile.action.AbstractProfileAction action, @Nonnull Response response, @Nonnull net.shibboleth.utilities.java.support.security.IdentifierGenerationStrategy idGenerator, @Nonnull @NotEmpty String issuer)
Constructs and adds aAssertion
to the givenResponse
. TheAssertion
is 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 org.opensaml.profile.action.AbstractProfileAction action, @Nonnull Assertion assertion)
Creates and adds aConditions
to a givenAssertion
. If theAssertion
already contains anConditions
this method just returns.- Parameters:
action
- current actionassertion
- assertion to which the condition will be added- Returns:
- the
Conditions
that already existed on, or the one that was added to, theAssertion
-
getLogger
@Nonnull private static org.slf4j.Logger getLogger()
Gets the logger for this class.- Returns:
- logger for this class, never null
-
-