public class ExpiringSAMLArtifactMapEntry extends BasicSAMLArtifactMapEntry
BasicSAMLArtifactMapEntry that tracks expiration.| Modifier and Type | Field and Description |
|---|---|
private long |
expiration
Expiration in milliseconds since the start of the Unix epoch.
|
| Constructor and Description |
|---|
ExpiringSAMLArtifactMapEntry(java.lang.String samlArtifact,
java.lang.String issuerId,
java.lang.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, getSamlMessageprivate long expiration
public ExpiringSAMLArtifactMapEntry(@Nonnull @NotEmpty
java.lang.String samlArtifact,
@Nonnull @NotEmpty
java.lang.String issuerId,
@Nonnull @NotEmpty
java.lang.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 against