public class ExpiringSAMLArtifactMapEntry extends BasicSAMLArtifactMapEntry
BasicSAMLArtifactMapEntry that tracks expiration.| Constructor and Description |
|---|
ExpiringSAMLArtifactMapEntry(String samlArtifact,
String issuerId,
String relyingPartyId,
SAMLObject samlMessage)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getExpiration()
Returns the expiration in milliseconds since the start of the Unix epoch.
|
boolean |
isValid()
Returns true iff the entry is valid as of now.
|
boolean |
isValid(long effectiveTime)
Returns true iff the entry is valid as of a specified time.
|
void |
setExpiration(long exp)
Sets the expiration in milliseconds since the start of the Unix epoch.
|
getArtifact, getIssuerId, getRelyingPartyId, getSamlMessagepublic ExpiringSAMLArtifactMapEntry(@Nonnull @NotEmpty String samlArtifact, @Nonnull @NotEmpty String issuerId, @Nonnull @NotEmpty String relyingPartyId, @Nonnull SAMLObject samlMessage) throws MarshallingException, UnmarshallingException
samlArtifact - artifact associated with the messageissuerId - issuer of the artifactrelyingPartyId - intended recipient of the artifactsamlMessage - SAML message mapped to the artifactMarshallingException - if an error occurs isolating a message from its parentUnmarshallingException - if an error occurs isolating a message from its parentpublic long getExpiration()
public void setExpiration(long exp)
exp - the expirationpublic boolean isValid()
public boolean isValid(long effectiveTime)
effectiveTime - the time to evaluate validity againstCopyright © 2021. All rights reserved.