Class BinaryAttributeValue
Object
se.curity.identityserver.sdk.attribute.BinaryAttributeValue
- All Implemented Interfaces:
AttributeOrAttributeValue<AttributeValue>,AttributeValue
Binary value attribute representation. Serializes into base64 encoded String.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getBytes()Get the binary value contained as a byte array.getValue()Get the value contained in this BinaryAttributeValue represented as a base64 encoded String.Get the value contained in this BinaryAttributeValue represented as a base64 encoded String.inthashCode()booleanisEmpty()Whether the underlying byte array contains any data.static BinaryAttributeValueof(byte[] value) Create a BinaryAttributeValue from the provided byte array.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.curity.identityserver.sdk.attribute.AttributeValue
getValueWithAuthorities, map
-
Method Details
-
of
Create a BinaryAttributeValue from the provided byte array. Default serialization format of base64 will be used- Parameters:
value- The byte array to be contained by this BinaryAttributeValue- Returns:
- A BinaryAttributeValue representation
-
isEmpty
public boolean isEmpty()Whether the underlying byte array contains any data.- Specified by:
isEmptyin interfaceAttributeValue- Returns:
- true if the underlying byte array is empty, false if not
-
getBytes
public byte[] getBytes()Get the binary value contained as a byte array.- Returns:
- A byte array of the binary value
-
getValue
Get the value contained in this BinaryAttributeValue represented as a base64 encoded String.- Specified by:
getValuein interfaceAttributeOrAttributeValue<AttributeValue>- Returns:
- Base64 encoded string representation of the binary value
-
getValueWithMetadata
Get the value contained in this BinaryAttributeValue represented as a base64 encoded String.- Specified by:
getValueWithMetadatain interfaceAttributeOrAttributeValue<AttributeValue>- Returns:
- Base64 encoded string representation of the binary value
-
equals
-
hashCode
public int hashCode()
-