Class ProtectedStringType
- java.lang.Object
-
- com.evolveum.prism.xml.ns._public.types_3.ProtectedDataType<String>
-
- com.evolveum.prism.xml.ns._public.types_3.ProtectedStringType
-
- All Implemented Interfaces:
ProtectedData<String>
,JaxbVisitable
,Serializable
,Cloneable
public class ProtectedStringType extends ProtectedDataType<String> implements Cloneable
This class was originally generated. But it was heavily modified by hand.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static QName
COMPLEX_TYPE
-
Fields inherited from class com.evolveum.prism.xml.ns._public.types_3.ProtectedDataType
ATTRIBUTE_XML_ENC_ALGORITHM, content, F_CLEAR_VALUE, F_ENCRYPTED_DATA, F_HASHED_DATA, F_XML_DSIG_KEY_INFO, F_XML_DSIG_KEY_NAME, F_XML_ENC_ALGORITHM, F_XML_ENC_CIPHER_DATA, F_XML_ENC_CIPHER_VALUE, F_XML_ENC_ENCRYPTED_DATA, F_XML_ENC_ENCRYPTION_METHOD, NS_XML_DSIG, NS_XML_ENC
-
-
Constructor Summary
Constructors Constructor Description ProtectedStringType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(JaxbVisitor visitor)
static String
bytesToString(byte[] clearBytes)
boolean
canSupportType(Class<?> type)
ProtectedStringType
clearValue(String clearValue)
ProtectedStringType
clone()
boolean
equals(Object obj)
Indicates whether some other object is "equal to" this one.static ProtectedStringType
fromClearValue(String clearValue)
byte[]
getClearBytes()
int
hashCode()
void
setClearBytes(byte[] bytes)
-
Methods inherited from class com.evolveum.prism.xml.ns._public.types_3.ProtectedDataType
canGetCleartext, clear, cloneTo, destroyCleartext, getClearValue, getContent, getEncryptedDataType, getHashedDataType, isEmpty, isEncrypted, isHashed, setClearValue, setEncryptedData, setHashedData, toString
-
-
-
-
Field Detail
-
COMPLEX_TYPE
public static final QName COMPLEX_TYPE
-
-
Method Detail
-
fromClearValue
public static ProtectedStringType fromClearValue(String clearValue)
-
getClearBytes
public byte[] getClearBytes()
- Specified by:
getClearBytes
in interfaceProtectedData<String>
-
setClearBytes
public void setClearBytes(byte[] bytes)
- Specified by:
setClearBytes
in interfaceProtectedData<String>
-
clearValue
public ProtectedStringType clearValue(String clearValue)
- Overrides:
clearValue
in classProtectedDataType<String>
-
canSupportType
public boolean canSupportType(Class<?> type)
- Specified by:
canSupportType
in interfaceProtectedData<String>
-
equals
public boolean equals(Object obj)
Description copied from class:ProtectedDataType
Indicates whether some other object is "equal to" this one. This is standard Java equality comparison. I.e. it will return true if the Java objects contain the same data. This means that both object must use the same protection mechanism (enctyption,hash), same keys must be used, ciphertext or hashes must be the same and so on. If this method returns true then obviously also the cleartext data are the same. However, if this method returns false then no information about the cleartext data can be inferred. Cleartext data may still be the same in both objects. Therefore this method is not suitable for almost any practical purpose. It is here mostly just to keep the Java interface contract.See the methods of Protector for a more practical comparison algorithms.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classProtectedDataType<String>
-
clone
public ProtectedStringType clone()
-
bytesToString
public static String bytesToString(byte[] clearBytes)
-
accept
public void accept(JaxbVisitor visitor)
- Specified by:
accept
in interfaceJaxbVisitable
-
-