public final class GeneralizedTimeSyntax extends Object
Modifier and Type | Method and Description |
---|---|
static ByteString |
createGeneralizedTimeValue(long time)
Retrieves an attribute value containing a generalized time representation of the provided date.
|
static long |
decodeGeneralizedTimeValue(ByteSequence value)
Decodes the provided normalized value as a generalized time value and retrieves a timestamp containing its
representation.
|
static String |
format(Date d)
Retrieves the generalized time representation of the provided date.
|
static String |
format(long t)
Retrieves the generalized time representation of the provided date.
|
public static String format(Date d)
d
- The date to retrieve in generalized time form.public static String format(long t)
t
- The timestamp to retrieve in generalized time form.public static ByteString createGeneralizedTimeValue(long time)
time
- The time for which to retrieve the generalized time value.public static long decodeGeneralizedTimeValue(ByteSequence value) throws LdapException
value
- The normalized value to decode using the generalized time syntax.LdapException
- If the provided value cannot be parsed as a valid generalized time string.Copyright 2010-2022 ForgeRock AS.