Package net.shibboleth.idp.attribute
Interface IdPAttributeValue
-
- All Known Implementing Classes:
ByteAttributeValue,EmptyAttributeValue,ScopedStringAttributeValue,StringAttributeValue,XMLObjectAttributeValue
public interface IdPAttributeValueInterface for values of anIdPAttribute. This interface provides an explicit method for getting the value of an attribute as opposed to any other data that may be associated with the value, as well as a displayable value.Implementations of this interface MUST implement an appropriate
Object.equals(Object)andObject.hashCode()method. They should also implementObject.toString()such that useful representations may be written out in log messages.Implementations are expected to implement a natively typed getValue() method. This will usually be like the
getNativeValue()the outlier being theScopedStringAttributeValuewhich for legacy reasons returns only the head part of the value for getValue().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
getNativeValue
@Nonnull Object getNativeValue()
Get the native representation of the value of this attribute.- Returns:
- the attribute value in native format.
-
-