Class PrimitiveAttributeValue
Object
se.curity.identityserver.sdk.attribute.PrimitiveAttributeValue
- All Implemented Interfaces:
AttributeOrAttributeValue<AttributeValue>,AttributeValue
- Direct Known Subclasses:
PrimitiveAttributeValue.StringAttributeValue
An
AttributeValue representing a single value.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classAnAttributeValuewhose value is a String. -
Method Summary
Modifier and TypeMethodDescription<Type> TypeConverts the value of thisAttributeValueto the provided type if possible.booleangetValue()inthashCode()booleanisEmpty()<V> Vmap(PrimitiveAttributeValue.PrimitiveValueConsumer<V> valueConsumer) static PrimitiveAttributeValueof(Comparable<?> value) toString()Methods 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
-
of
-
getValue
- Specified by:
getValuein interfaceAttributeOrAttributeValue<AttributeValue>- Returns:
- the value of this entity.
-
getValueWithMetadata
- Specified by:
getValueWithMetadatain interfaceAttributeOrAttributeValue<AttributeValue>- Returns:
- the value of this entity, including any metadata it might have.
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceAttributeValue- Returns:
- true if this AttributeValue is semantically empty, ie. has no value.
-
map
-
equals
-
hashCode
public int hashCode() -
toString
-
convertTo
Converts the value of thisAttributeValueto the provided type if possible.- Type Parameters:
Type- type of the result- Parameters:
type- to convert value to- Returns:
- the value of this
AttributeValueconverted toType.
-