Class PrimitiveAttributeValue.StringAttributeValue
Object
se.curity.identityserver.sdk.attribute.PrimitiveAttributeValue
se.curity.identityserver.sdk.attribute.PrimitiveAttributeValue.StringAttributeValue
- All Implemented Interfaces:
AttributeOrAttributeValue<AttributeValue>,AttributeValue
- Enclosing class:
- PrimitiveAttributeValue
public static final class PrimitiveAttributeValue.StringAttributeValue
extends PrimitiveAttributeValue
An
AttributeValue whose value is a String.
An optional format may be specified.
-
Nested Class Summary
Nested classes/interfaces inherited from class se.curity.identityserver.sdk.attribute.PrimitiveAttributeValue
PrimitiveAttributeValue.PrimitiveValueConsumer<V>, PrimitiveAttributeValue.StringAttributeValue -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValue()inthashCode()booleanisEmpty()withFormat(String format) Methods inherited from class se.curity.identityserver.sdk.attribute.PrimitiveAttributeValue
convertTo, getValueWithMetadata, map, of, of, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface se.curity.identityserver.sdk.attribute.AttributeValue
getValueWithAuthorities, map
-
Method Details
-
of
-
getFormat
-
getValue
- Specified by:
getValuein interfaceAttributeOrAttributeValue<AttributeValue>- Overrides:
getValuein classPrimitiveAttributeValue- Returns:
- the value of this entity.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceAttributeValue- Overrides:
isEmptyin classPrimitiveAttributeValue- Returns:
- true if this AttributeValue is semantically empty, ie. has no value.
-
asFormattedValue
- Returns:
- the
FormattedValueview of this value. This allowsStringAttributeValueto be viewed as both aFormattedValueand aPrimitiveAttributeValue, alleviating single-inheritance restrictions.
-
withFormat
-
equals
- Overrides:
equalsin classPrimitiveAttributeValue
-
hashCode
public int hashCode()- Overrides:
hashCodein classPrimitiveAttributeValue
-