public class SAML2TestStatusResponseTypeValidator extends Object
#org.opensaml.saml.saml2.core.StatusResponseType validator.| Modifier and Type | Field and Description |
|---|---|
String |
destination
Expected destination.
|
String |
idpEntityID
Expected IdP entity ID.
|
String |
spEntityID
Expected SP entity ID.
|
String |
statusCode
Expected status code.
|
String |
statusCodeNested
Expected nested status code when an error occurs.
|
String |
statusMessage
Expected status message when an error occurs.
|
| Constructor and Description |
|---|
SAML2TestStatusResponseTypeValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
assertResponse(org.opensaml.saml.saml2.core.StatusResponseType response)
Assert that :
the response is not null
the response ID is not null
the response ID is not empty
the response issue instant is not null
the response version is
SAMLVersion.VERSION_20
the response issuer is the expected IdP entity ID
the response destination is the expected destination, if not null
|
void |
assertStatus(org.opensaml.saml.saml2.core.Status status)
Assert that :
the status is not null
the status code is not null
the status code is the expected status code
the status message is the expected status message if the status code is not success
the nested status message is the expected nested status message if the status is not success
|
void |
validateResponse(org.opensaml.saml.saml2.core.StatusResponseType response)
Validate the response.
|
@Nonnull public String statusCodeNested
public SAML2TestStatusResponseTypeValidator()
public void validateResponse(@Nullable org.opensaml.saml.saml2.core.StatusResponseType response)
Calls assert methods :
response - the status response typepublic void assertResponse(@Nullable org.opensaml.saml.saml2.core.StatusResponseType response)
SAMLVersion.VERSION_20response - the status response typepublic void assertStatus(@Nullable org.opensaml.saml.saml2.core.Status status)
status - the statusCopyright © 1999–2015. All rights reserved.