Class TypeValuePairType

  • All Implemented Interfaces:
    Serializable

    public class TypeValuePairType
    extends Object
    implements Serializable
    The ValuePair is used in ParticipantObjectIdentificationType descriptions to capture parameters. All values (even those that are normally plain text) are encoded as Base64. This is to preserve details of encoding (e.g., nulls) and to protect against text contents that contain XML fragments. These are known attack points against applications, so security logs can be expected to need to capture them without modification by the audit encoding process.
    Since:
    3.5
    Author:
    Christian Ohr
    See Also:
    Serialized Form
    • Constructor Detail

      • TypeValuePairType

        public TypeValuePairType​(String type,
                                 String value)
        Creates an instance
        Parameters:
        type - type
        value - value string, NOT yet base64 encoded
      • TypeValuePairType

        public TypeValuePairType​(String type,
                                 String value,
                                 String defaultValue)
        Creates an instance
        Parameters:
        type - type
        value - value string, NOT yet base64 encoded
        defaultValue - default value string used when value is null, NOT yet base64 encoded
      • TypeValuePairType

        public TypeValuePairType​(String type,
                                 byte[] value)
        Creates an instance
        Parameters:
        type - type
        value - value byte array, NOT yet base64 encoded
      • TypeValuePairType

        public TypeValuePairType​(String type,
                                 byte[] value,
                                 byte[] defaultValue)
        Creates an instance
        Parameters:
        type - type
        value - value byte array, NOT yet base64 encoded
        defaultValue - default value byte array used when value is null, NOT yet base64 encoded
    • Method Detail

      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getType

        public String getType()
      • getValue

        public byte[] getValue()