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(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, getSamlMessage
private long expiration
public ExpiringSAMLArtifactMapEntry(@Nonnull @NotEmpty String samlArtifact, @Nonnull @NotEmpty String issuerId, @Nonnull @NotEmpty String relyingPartyId, @Nonnull SAMLObject samlMessage) throws org.opensaml.core.xml.io.MarshallingException, org.opensaml.core.xml.io.UnmarshallingException
samlArtifact
- artifact associated with the messageissuerId
- issuer of the artifactrelyingPartyId
- intended recipient of the artifactsamlMessage
- SAML message mapped to the artifactorg.opensaml.core.xml.io.MarshallingException
- if an error occurs isolating a message from its parentorg.opensaml.core.xml.io.UnmarshallingException
- 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 © 1999–2015 JBoss by Red Hat. All rights reserved.