Class BaseSAMLMessageParser.SimpleConditionLookup
- java.lang.Object
-
- org.certificateservices.messages.saml2.BaseSAMLMessageParser.SimpleConditionLookup
-
- All Implemented Interfaces:
BaseSAMLMessageParser.ConditionLookup
- Enclosing class:
- BaseSAMLMessageParser
public static class BaseSAMLMessageParser.SimpleConditionLookup extends java.lang.Object implements BaseSAMLMessageParser.ConditionLookup
Simple Condition lookup that doesn't support the OneTime or AudienceRestriction Conditions but throws MessageContentException if they exists.
-
-
Constructor Summary
Constructors Constructor Description SimpleConditionLookup()SimpleConditionLookup(long clockSkew)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longacceptedClockSkew()Method that should return the acceptable clock skew in milliseconds when checking the not before and not after conditionsjava.lang.StringgetThisAudienceId()Method to get this systems audience id, that should be matched against available audience conditions.booleanusedBefore(java.lang.String messageId)Method to check if a given assertionId have been used before, used for verifying the OneTime condition.
-
-
-
Method Detail
-
usedBefore
public boolean usedBefore(java.lang.String messageId) throws MessageContentException, MessageProcessingExceptionDescription copied from interface:BaseSAMLMessageParser.ConditionLookupMethod to check if a given assertionId have been used before, used for verifying the OneTime condition.- Specified by:
usedBeforein interfaceBaseSAMLMessageParser.ConditionLookup- Parameters:
messageId- the assertion ID to lookup- Returns:
- true if this ID has been used before.
- Throws:
MessageContentException- if this system doesn't support the OneTime condition.MessageProcessingException- if internal problems occurred.
-
getThisAudienceId
public java.lang.String getThisAudienceId() throws MessageContentException, MessageProcessingExceptionDescription copied from interface:BaseSAMLMessageParser.ConditionLookupMethod to get this systems audience id, that should be matched against available audience conditions.- Specified by:
getThisAudienceIdin interfaceBaseSAMLMessageParser.ConditionLookup- Returns:
- this systems audience id, that should be matched against available audience conditions.
- Throws:
MessageContentException- if this system doesn't support the audience restriction condition.MessageProcessingException- if internal problems occurred.
-
acceptedClockSkew
public long acceptedClockSkew() throws MessageProcessingExceptionDescription copied from interface:BaseSAMLMessageParser.ConditionLookupMethod that should return the acceptable clock skew in milliseconds when checking the not before and not after conditions- Specified by:
acceptedClockSkewin interfaceBaseSAMLMessageParser.ConditionLookup- Returns:
- the accepted clock skew in milliseconds
- Throws:
MessageProcessingException- if internal problems occurred.
-
-