Package net.shibboleth.idp.attribute
Class DateTimeAttributeValue
- java.lang.Object
-
- net.shibboleth.idp.attribute.DateTimeAttributeValue
-
- All Implemented Interfaces:
Comparable<IdPAttributeValue>,IdPAttributeValue
public class DateTimeAttributeValue extends Object implements IdPAttributeValue
Base class forIdPAttributevalues that are date/time values.- Since:
- 4.3.0
-
-
Constructor Summary
Constructors Constructor Description DateTimeAttributeValue(Instant attributeValue)Constructor.DateTimeAttributeValue(ZonedDateTime attributeValue)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetDisplayValue()Get a displayable form of the value for user interfaces and similar purposes.ObjectgetNativeValue()Get the native representation of the value of this attribute.InstantgetValue()Return the value.inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.shibboleth.idp.attribute.IdPAttributeValue
compareTo
-
-
-
-
Constructor Detail
-
DateTimeAttributeValue
public DateTimeAttributeValue(@Nonnull @NotEmpty @ParameterName(name="attributeValue") Instant attributeValue)
Constructor.- Parameters:
attributeValue- the attribute value
-
DateTimeAttributeValue
public DateTimeAttributeValue(@Nonnull @NotEmpty @ParameterName(name="attributeValue") ZonedDateTime attributeValue)
Constructor.- Parameters:
attributeValue- the attribute value
-
-
Method Detail
-
getNativeValue
public Object getNativeValue()
Get the native representation of the value of this attribute.- Specified by:
getNativeValuein interfaceIdPAttributeValue- Returns:
- the attribute value in native format.
-
getValue
@Nonnull public final Instant getValue()
Return the value.- Returns:
- the value
-
getDisplayValue
@Nonnull @NotEmpty public String getDisplayValue()
Get a displayable form of the value for user interfaces and similar purposes.- Specified by:
getDisplayValuein interfaceIdPAttributeValue- Returns:
- a displayable value
-
-