public class SAML2Helper extends Object
Constructor and Description |
---|
SAML2Helper() |
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 earliestExpiration,
org.joda.time.DateTime now)
Gets the earliest expiration instant within a metadata tree.
|
static boolean |
isValid(XMLObject xmlObject)
Checks to see if the given XMLObject is still valid.
|
public static boolean isValid(XMLObject xmlObject)
TimeBoundSAMLObject
is valid.xmlObject
- the XML object tree to checkpublic static org.joda.time.DateTime getEarliestExpiration(XMLObject xmlObject)
TimeBoundSAMLObject
CacheableSAMLObject
added to the current timexmlObject
- the XML object tree to get the earliest expiration time frompublic static org.joda.time.DateTime getEarliestExpiration(XMLObject xmlObject, org.joda.time.DateTime earliestExpiration, org.joda.time.DateTime now)
xmlObject
- the metadataearliestExpiration
- the earliest expiration instantnow
- when this method was calledCopyright © 2018 JBoss by Red Hat. All rights reserved.