Class MessageLifetimeSecurityHandlerTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.saml.common.binding.security.impl.MessageLifetimeSecurityHandlerTest
-
public class MessageLifetimeSecurityHandlerTest extends XMLObjectBaseTestCase
Testing SAML issue instant security policy rule.
-
-
Field Summary
Fields Modifier and Type Field Description private DurationclockSkewprivate MessageLifetimeSecurityHandlerhandlerprivate MessageContextmessageContextprivate DurationmessageLifetimeprivate Instantnow-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description MessageLifetimeSecurityHandlerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()voidtestInvalidExpired()Test invalid when expired, beyond allowed clock skew.voidtestInvalidIssuedInFuture()Test invalid when issued in future, beyond allowed clock skew.voidtestValid()Test valid issue instant.voidtestValidExpiredWithinClockSkew()Test valid when expired, but within allowed clock skew.voidtestValidIssuedInFutureWithinClockSkew()Test valid when issued in future, but within allowed clock skew.-
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
-
messageContext
private MessageContext messageContext
-
handler
private MessageLifetimeSecurityHandler handler
-
clockSkew
private Duration clockSkew
-
messageLifetime
private Duration messageLifetime
-
now
private Instant now
-
-
Method Detail
-
testValid
public void testValid() throws MessageHandlerExceptionTest valid issue instant.- Throws:
MessageHandlerException- ...
-
testInvalidIssuedInFuture
public void testInvalidIssuedInFuture() throws MessageHandlerExceptionTest invalid when issued in future, beyond allowed clock skew.- Throws:
MessageHandlerException- ...
-
testValidIssuedInFutureWithinClockSkew
public void testValidIssuedInFutureWithinClockSkew() throws MessageHandlerExceptionTest valid when issued in future, but within allowed clock skew.- Throws:
MessageHandlerException- ...
-
testInvalidExpired
public void testInvalidExpired() throws MessageHandlerExceptionTest invalid when expired, beyond allowed clock skew.- Throws:
MessageHandlerException- ...
-
testValidExpiredWithinClockSkew
public void testValidExpiredWithinClockSkew() throws MessageHandlerExceptionTest valid when expired, but within allowed clock skew.- Throws:
MessageHandlerException- ...
-
-