Class ExpiringSAMLArtifactMapEntry
java.lang.Object
org.opensaml.saml.common.binding.artifact.BasicSAMLArtifactMapEntry
org.opensaml.saml.common.binding.artifact.ExpiringSAMLArtifactMapEntry
- All Implemented Interfaces:
SAMLArtifactMap.SAMLArtifactMapEntry
Extension of
BasicSAMLArtifactMapEntry
that tracks expiration.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExpiringSAMLArtifactMapEntry
(String samlArtifact, String issuerId, String relyingPartyId, SAMLObject samlMessage) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the expiration time.boolean
isValid()
Returns true iff the entry is valid as of now.boolean
Returns true iff the entry is valid as of a specified time.void
setExpiration
(Instant exp) Sets the expiration time.Methods inherited from class org.opensaml.saml.common.binding.artifact.BasicSAMLArtifactMapEntry
getArtifact, getIssuerId, getRelyingPartyId, getSamlMessage
-
Field Details
-
expiration
Expiration time.
-
-
Constructor Details
-
ExpiringSAMLArtifactMapEntry
public ExpiringSAMLArtifactMapEntry(@Nonnull @NotEmpty String samlArtifact, @Nonnull @NotEmpty String issuerId, @Nonnull @NotEmpty String relyingPartyId, @Nonnull SAMLObject samlMessage) throws MarshallingException, UnmarshallingException Constructor.- Parameters:
samlArtifact
- artifact associated with the messageissuerId
- issuer of the artifactrelyingPartyId
- intended recipient of the artifactsamlMessage
- SAML message mapped to the artifact- Throws:
MarshallingException
- if an error occurs isolating a message from its parentUnmarshallingException
- if an error occurs isolating a message from its parent
-
-
Method Details
-
getExpiration
Returns the expiration time.- Returns:
- the expiration
-
setExpiration
Sets the expiration time.- Parameters:
exp
- the expiration
-
isValid
public boolean isValid()Returns true iff the entry is valid as of now.- Returns:
- true iff the entry is valid as of now
-
isValid
Returns true iff the entry is valid as of a specified time.- Parameters:
effectiveTime
- the time to evaluate validity against- Returns:
- true iff the entry is valid as of a specified time
-