public class SAML1ActionTestingSupport 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 |
|---|
SAML1ActionTestingSupport() |
| Modifier and Type | Method and Description |
|---|---|
static org.opensaml.saml.saml1.core.Request |
buildArtifactRequest(String... artifacts)
Builds a
Request containing AssertionArtifacts. |
static org.opensaml.saml.saml1.core.Assertion |
buildAssertion()
Builds an empty assertion.
|
static org.opensaml.saml.saml1.core.Request |
buildAttributeQueryRequest(org.opensaml.saml.saml1.core.Subject subject)
Builds a
Request containing an AttributeQuery. |
static org.opensaml.saml.saml1.core.AttributeStatement |
buildAttributeStatement()
Builds an empty attribute statement.
|
static org.opensaml.saml.saml1.core.AuthenticationStatement |
buildAuthenticationStatement()
Builds an authentication statement.
|
static org.opensaml.saml.saml1.core.Response |
buildResponse()
Builds an empty response.
|
static org.opensaml.saml.saml1.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.saml1.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.saml1.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.saml1.core.AuthenticationStatement buildAuthenticationStatement()
@Nonnull public static org.opensaml.saml.saml1.core.AttributeStatement buildAttributeStatement()
@Nonnull public static org.opensaml.saml.saml1.core.Subject buildSubject(@Nullable String principalName)
Subject. If a principal name is given a NameIdentifier, 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.saml1.core.Request buildAttributeQueryRequest(@Nullable org.opensaml.saml.saml1.core.Subject subject)
Request containing an AttributeQuery. If a Subject is given, it will be added to
the constructed AttributeQuery.subject - the subject to add to the queryCopyright © 1999–2014. All rights reserved.