Class AuthnStatementValidatorTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.saml2.assertion.tests.BaseAssertionValidationTest
-
- org.opensaml.saml.saml2.assertion.impl.AuthnStatementValidatorTest
-
public class AuthnStatementValidatorTest extends BaseAssertionValidationTest
-
-
Field Summary
Fields Modifier and Type Field Description private AuthnStatementauthnStatementprivate AuthnStatementValidatorvalidator-
Fields inherited from class org.opensaml.saml.saml2.assertion.tests.BaseAssertionValidationTest
AUTHN_STATEMENT_ADDRESS, CLOCK_SKEW, ISSUER, PRINCIPAL_NAME, SUBJECT_CONFIRMATION_ADDRESS, SUBJECT_CONFIRMATION_IN_RESPONSE_TO, SUBJECT_CONFIRMATION_RECIPIENT
-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description AuthnStatementValidatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtestAuthnContextEval()voidtestInvalidAddress()voidtestInvalidAddressParamType()voidtestInvalidAddressWithAddressCheckDisabled()(package private) voidtestMaxTimeSinceAuthnExceeded()voidtestMissingAddressParam()voidtestNoAddress()(package private) voidtestNoAuthnInstant()(package private) voidtestNoMaxTimeSinceAuthnParam()voidtestNoSubjectLocality()voidtestValid()voidtestValidationThrows()voidtestWrongStatementType()-
Methods inherited from class org.opensaml.saml.saml2.assertion.tests.BaseAssertionValidationTest
buildBasicAuthnStatement, buildBasicConditions, buildBasicStaticParameters, buildBasicSubjectConfirmationData, buildBasicSubjectConfirmationData, getAssertion, getCertificate, getPrivateKey, getSigningCredential, setUpBasicAssertion, signAssertion
-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
validator
private AuthnStatementValidator validator
-
authnStatement
private AuthnStatement authnStatement
-
-
Method Detail
-
setUp
@BeforeMethod(dependsOnMethods="setUpBasicAssertion") public void setUp()
-
testValid
public void testValid() throws AssertionValidationException- Throws:
AssertionValidationException
-
testMaxTimeSinceAuthnExceeded
void testMaxTimeSinceAuthnExceeded() throws AssertionValidationException- Throws:
AssertionValidationException
-
testNoAuthnInstant
void testNoAuthnInstant() throws AssertionValidationException- Throws:
AssertionValidationException
-
testNoMaxTimeSinceAuthnParam
void testNoMaxTimeSinceAuthnParam() throws AssertionValidationException- Throws:
AssertionValidationException
-
testInvalidAddress
public void testInvalidAddress() throws AssertionValidationException- Throws:
AssertionValidationException
-
testInvalidAddressWithAddressCheckDisabled
public void testInvalidAddressWithAddressCheckDisabled() throws AssertionValidationException- Throws:
AssertionValidationException
-
testInvalidAddressParamType
public void testInvalidAddressParamType() throws AssertionValidationException- Throws:
AssertionValidationException
-
testMissingAddressParam
public void testMissingAddressParam() throws AssertionValidationException- Throws:
AssertionValidationException
-
testNoAddress
public void testNoAddress() throws AssertionValidationException- Throws:
AssertionValidationException
-
testNoSubjectLocality
public void testNoSubjectLocality() throws AssertionValidationException- Throws:
AssertionValidationException
-
testAuthnContextEval
public void testAuthnContextEval() throws AssertionValidationException- Throws:
AssertionValidationException
-
testValidationThrows
public void testValidationThrows() throws AssertionValidationException- Throws:
AssertionValidationException
-
testWrongStatementType
public void testWrongStatementType() throws AssertionValidationException- Throws:
AssertionValidationException
-
-