public class ByteAttributeValue extends Object implements IdPAttributeValue<byte[]>
byte[] value for an IdPAttribute.| Modifier and Type | Field and Description |
|---|---|
private byte[] |
value
Value of the attribute.
|
| Constructor and Description |
|---|
ByteAttributeValue(byte[] attributeValue)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDisplayValue()
Get a displayable form of the value for user interfaces and similar purposes.
|
byte[] |
getValue()
Get the value of this attribute.
|
int |
hashCode() |
String |
toBase64()
Gets this value as a Base64-encoded string.
|
String |
toHex()
Get this value as a hex-encoded string.
|
String |
toString() |
static IdPAttributeValue<?> |
valueOf(byte[] value)
Returns an
EmptyAttributeValue or ByteAttributeValue as appropriate. |
public ByteAttributeValue(@Nonnull@ParameterName(name="attributeValue") byte[] attributeValue)
attributeValue - value of the attributepublic final byte[] getValue()
getValue in interface IdPAttributeValue<byte[]>@Nonnull @NotEmpty public String getDisplayValue()
getDisplayValue in interface IdPAttributeValue<byte[]>@Nonnull public String toHex()
@Nonnull public String toBase64()
@Nonnull public static IdPAttributeValue<?> valueOf(@Nullable byte[] value)
EmptyAttributeValue or ByteAttributeValue as appropriate. This method should be
preferred over the constructor when the value may be null or empty.value - to inspectEmptyAttributeValue or ByteAttributeValueCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.