Class ByteAttributeValue

    • Field Detail

      • value

        private final byte[] value
        Value of the attribute.
    • Constructor Detail

      • ByteAttributeValue

        public ByteAttributeValue​(@Nonnull @ParameterName(name="attributeValue")
                                  byte[] attributeValue)
        Constructor.
        Parameters:
        attributeValue - value of the attribute
    • Method Detail

      • getValue

        public byte[] getValue()
        Return the value.
        Returns:
        the value
      • getNativeValue

        public Object getNativeValue()
        Get the native representation of the value of this attribute.
        Specified by:
        getNativeValue in interface IdPAttributeValue
        Returns:
        the attribute value in native format.
      • getDisplayValue

        @Nonnull
        @NotEmpty
        public String getDisplayValue()
        Get a displayable form of the value for user interfaces and similar purposes.
        Specified by:
        getDisplayValue in interface IdPAttributeValue
        Returns:
        a displayable value
      • toHex

        @Nonnull
        public String toHex()
        Get this value as a hex-encoded string.
        Returns:
        a hex-encoded string
      • toBase64

        @Nonnull
        public String toBase64()
                        throws EncodingException
        Gets this value as a Base64-encoded string.
        Returns:
        a Base64-encoded string
        Throws:
        EncodingException - on failure to base64 encode byte value
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object