public final class SAML2Support
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
SAML2Support()
Private constructor to disallow instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
static org.joda.time.DateTime |
getEarliestExpiration(XMLObject xmlObject)
Gets the earliest expiration instant for a XMLObject.
|
static org.joda.time.DateTime |
getEarliestExpiration(XMLObject xmlObject,
org.joda.time.DateTime candidateTime,
org.joda.time.DateTime now)
Gets the earliest expiration instant within a metadata tree.
|
static org.joda.time.DateTime |
getEarliestExpirationFromCacheable(CacheableSAMLObject cacheableObject,
org.joda.time.DateTime candidateTime,
org.joda.time.DateTime now)
Gets the earliest effective expiration instant of the specified cacheable SAML object and the specified
candidate time.
|
static org.joda.time.DateTime |
getEarliestExpirationFromTimeBound(TimeBoundSAMLObject timeBoundObject,
org.joda.time.DateTime candidateTime)
Gets the earliest effective expiration instant of the specified time-bound SAML object and the specified
candidate time.
|
static boolean |
isValid(XMLObject xmlObject)
Checks to see if the given XMLObject is still valid.
|
private SAML2Support()
public static boolean isValid(XMLObject xmlObject)
TimeBoundSAMLObject is valid.xmlObject - the XML object tree to check@Nullable
public static org.joda.time.DateTime getEarliestExpiration(@Nullable
XMLObject xmlObject)
TimeBoundSAMLObjectCacheableSAMLObject added to the current timexmlObject - the XML object tree from which to get the earliest expiration time@Nullable
public static org.joda.time.DateTime getEarliestExpiration(@Nullable
XMLObject xmlObject,
@Nullable
org.joda.time.DateTime candidateTime,
@Nonnull
org.joda.time.DateTime now)
xmlObject - the target XMLObject to evaluatecandidateTime - the candidate earliest expiration instantnow - when this method was called@Nullable
public static org.joda.time.DateTime getEarliestExpirationFromCacheable(@Nonnull
CacheableSAMLObject cacheableObject,
@Nullable
org.joda.time.DateTime candidateTime,
@Nonnull
org.joda.time.DateTime now)
cacheableObject - the target XMLObject to evaluatecandidateTime - the candidate earliest expiration instantnow - when this method was called@Nullable
public static org.joda.time.DateTime getEarliestExpirationFromTimeBound(@Nonnull
TimeBoundSAMLObject timeBoundObject,
@Nullable
org.joda.time.DateTime candidateTime)
timeBoundObject - the target XMLObject to evaluatecandidateTime - the earliest expiration instant