Package net.shibboleth.idp.attribute
Class DateTimeAttributeValue
java.lang.Object
net.shibboleth.idp.attribute.DateTimeAttributeValue
- All Implemented Interfaces:
Comparable<IdPAttributeValue>,IdPAttributeValue
Base class for
IdPAttribute values that are date/time values.- Since:
- 4.3.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDateTimeAttributeValue(Instant attributeValue) Constructor.DateTimeAttributeValue(ZonedDateTime attributeValue) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.shibboleth.idp.attribute.IdPAttributeValue
compareTo
-
Field Details
-
value
The attribute value.
-
-
Constructor Details
-
DateTimeAttributeValue
public DateTimeAttributeValue(@Nonnull @ParameterName(name="attributeValue") Instant attributeValue) Constructor.- Parameters:
attributeValue- the attribute value
-
DateTimeAttributeValue
public DateTimeAttributeValue(@Nonnull @ParameterName(name="attributeValue") ZonedDateTime attributeValue) Constructor.- Parameters:
attributeValue- the attribute value
-
-
Method Details
-
getNativeValue
Get the native representation of the value of this attribute.- Specified by:
getNativeValuein interfaceIdPAttributeValue- Returns:
- the attribute value in native format.
-
getValue
Return the value.- Returns:
- the value
-
getDisplayValue
Get a displayable form of the value for user interfaces and similar purposes.- Specified by:
getDisplayValuein interfaceIdPAttributeValue- Returns:
- a displayable value
-
equals
-
hashCode
public int hashCode() -
toString
-