|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picketlink.identity.federation.core.saml.v2.util.XMLTimeUtil
public class XMLTimeUtil
Util class dealing with xml based time
Constructor Summary | |
---|---|
XMLTimeUtil()
|
Method Summary | |
---|---|
static XMLGregorianCalendar |
add(XMLGregorianCalendar value,
long milis)
Add additional time in miliseconds |
static String |
getCurrentTimeZoneID()
|
static XMLGregorianCalendar |
getIssueInstant()
Get the current instant of time |
static XMLGregorianCalendar |
getIssueInstant(String timezone)
Returns a XMLGregorianCalendar in the timezone specified. |
static long |
inMilis(int valueInMins)
Convert the minutes into miliseconds |
static boolean |
isValid(XMLGregorianCalendar now,
XMLGregorianCalendar notbefore,
XMLGregorianCalendar notOnOrAfter)
Validate that the current time falls between the two boundaries |
static XMLGregorianCalendar |
parse(String timeString)
Given a string representing xml time, parse into XMLGregorianCalendar |
static Duration |
parseAsDuration(String timeValue)
Given a string, get the Duration object. |
static XMLGregorianCalendar |
subtract(XMLGregorianCalendar value,
long milis)
Subtract some miliseconds from the time value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLTimeUtil()
Method Detail |
---|
public static XMLGregorianCalendar add(XMLGregorianCalendar value, long milis) throws ConfigurationException
value
- calendar whose value needs to be updatedmilis
-
ConfigurationException
public static XMLGregorianCalendar subtract(XMLGregorianCalendar value, long milis) throws ConfigurationException
value
- milis
- miliseconds entered in a positive value
ConfigurationException
public static XMLGregorianCalendar getIssueInstant(String timezone) throws ConfigurationException
timezone
-
ConfigurationException
public static XMLGregorianCalendar getIssueInstant() throws ConfigurationException
ConfigurationException
public static String getCurrentTimeZoneID()
public static long inMilis(int valueInMins)
valueInMins
-
public static boolean isValid(XMLGregorianCalendar now, XMLGregorianCalendar notbefore, XMLGregorianCalendar notOnOrAfter)
now
- notbefore
- notOnOrAfter
-
public static Duration parseAsDuration(String timeValue) throws ParsingException
timeValue
-
ParsingException
public static XMLGregorianCalendar parse(String timeString) throws ParsingException
XMLGregorianCalendar
timeString
-
ParsingException
|
PicketLink Federation Core 2.1.6.Final-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |