public class SAML2ActionTestingSupport extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ASSERTION_ID
ID used for all generated
Assertion objects. |
static String |
REQUEST_ID
ID used for all generated
Response objects. |
static String |
RESPONSE_ID
ID used for all generated
Response objects. |
| Constructor and Description |
|---|
SAML2ActionTestingSupport() |
| Modifier and Type | Method and Description |
|---|---|
static org.opensaml.saml.saml2.core.ArtifactResolve |
buildArtifactResolve(String artifact)
Builds a
ArtifactResolve. |
static org.opensaml.saml.saml2.core.ArtifactResponse |
buildArtifactResponse()
Builds an empty artifact response.
|
static org.opensaml.saml.saml2.core.Assertion |
buildAssertion()
Builds an empty assertion.
|
static org.opensaml.saml.saml2.core.AttributeQuery |
buildAttributeQueryRequest(org.opensaml.saml.saml2.core.Subject subject)
Builds an
AttributeQuery. |
static org.opensaml.saml.saml2.core.AttributeStatement |
buildAttributeStatement()
Builds an empty attribute statement.
|
static org.opensaml.saml.saml2.core.AuthnRequest |
buildAuthnRequest()
Builds an
AuthnRequest. |
static org.opensaml.saml.saml2.core.AuthnStatement |
buildAuthnStatement()
Builds an authentication statement.
|
static org.opensaml.saml.saml2.core.LogoutRequest |
buildLogoutRequest(org.opensaml.saml.saml2.core.NameID name)
Builds an
LogoutRequest. |
static org.opensaml.saml.saml2.core.LogoutResponse |
buildLogoutResponse()
Builds an empty logout response.
|
static org.opensaml.saml.saml2.core.NameID |
buildNameID(String principalName)
Builds a
NameID. |
static org.opensaml.saml.saml2.core.Response |
buildResponse()
Builds an empty response.
|
static org.opensaml.saml.saml2.core.Subject |
buildSubject(String principalName)
Builds a
Subject. |
public static final String REQUEST_ID
Response objects.public static final String RESPONSE_ID
Response objects.public static final String ASSERTION_ID
Assertion objects.@Nonnull public static org.opensaml.saml.saml2.core.Response buildResponse()
ActionTestingSupport.OUTBOUND_MSG_ID, the issue
instant is 1970-01-01T00:00:00Z and the SAML version is SAMLVersion.VERSION_11.@Nonnull public static org.opensaml.saml.saml2.core.ArtifactResponse buildArtifactResponse()
ActionTestingSupport.OUTBOUND_MSG_ID, the issue
instant is 1970-01-01T00:00:00Z and the SAML version is SAMLVersion.VERSION_11.@Nonnull public static org.opensaml.saml.saml2.core.LogoutRequest buildLogoutRequest(@Nullable org.opensaml.saml.saml2.core.NameID name)
LogoutRequest. If a NameID is given, it will be added to the constructed
LogoutRequest.name - the NameID to add to the request@Nonnull public static org.opensaml.saml.saml2.core.LogoutResponse buildLogoutResponse()
ActionTestingSupport.OUTBOUND_MSG_ID, the issue
instant is 1970-01-01T00:00:00Z and the SAML version is SAMLVersion.VERSION_11.@Nonnull public static org.opensaml.saml.saml2.core.Assertion buildAssertion()
ASSERTION_ID, the issue instant is
1970-01-01T00:00:00Z and the SAML version is SAMLVersion.VERSION_11.@Nonnull public static org.opensaml.saml.saml2.core.AuthnStatement buildAuthnStatement()
@Nonnull public static org.opensaml.saml.saml2.core.AttributeStatement buildAttributeStatement()
@Nonnull public static org.opensaml.saml.saml2.core.Subject buildSubject(@Nullable String principalName)
Subject. If a principal name is given a NameID, whose value is the given principal name,
will be created and added to the Subject.principalName - the principal name to add to the subject@Nonnull public static org.opensaml.saml.saml2.core.NameID buildNameID(@Nonnull@NotEmpty String principalName)
NameID.principalName - the principal name to use in the NameID@Nonnull public static org.opensaml.saml.saml2.core.AttributeQuery buildAttributeQueryRequest(@Nullable org.opensaml.saml.saml2.core.Subject subject)
AttributeQuery. If a Subject is given, it will be added to the constructed
AttributeQuery.subject - the subject to add to the query@Nonnull public static org.opensaml.saml.saml2.core.AuthnRequest buildAuthnRequest()
AuthnRequest.Copyright © 1999–2014. All rights reserved.