Class TypeValuePairType
- java.lang.Object
-
- org.openehealth.ipf.commons.audit.model.TypeValuePairType
-
- All Implemented Interfaces:
Serializable
public class TypeValuePairType extends Object implements Serializable
The ValuePair is used inParticipantObjectIdentificationType
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 Summary
Constructors Constructor Description TypeValuePairType(String type, byte[] value)
Creates an instanceTypeValuePairType(String type, byte[] value, byte[] defaultValue)
Creates an instanceTypeValuePairType(String type, String value)
Creates an instanceTypeValuePairType(String type, String value, String defaultValue)
Creates an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getType()
byte[]
getValue()
int
hashCode()
-
-
-
Constructor Detail
-
TypeValuePairType
public TypeValuePairType(String type, String value)
Creates an instance- Parameters:
type
- typevalue
- value string, NOT yet base64 encoded
-
TypeValuePairType
public TypeValuePairType(String type, String value, String defaultValue)
Creates an instance- Parameters:
type
- typevalue
- value string, NOT yet base64 encodeddefaultValue
- default value string used when value is null, NOT yet base64 encoded
-
TypeValuePairType
public TypeValuePairType(String type, byte[] value)
Creates an instance- Parameters:
type
- typevalue
- value byte array, NOT yet base64 encoded
-
TypeValuePairType
public TypeValuePairType(String type, byte[] value, byte[] defaultValue)
Creates an instance- Parameters:
type
- typevalue
- value byte array, NOT yet base64 encodeddefaultValue
- default value byte array used when value is null, NOT yet base64 encoded
-
-