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:
PlainStructured
,PlainStructured.WithoutStrategy
,ProtectedData<String>
,JaxbVisitable
,Serializable
,Cloneable
This class was originally generated. But it was heavily modified by hand.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.binding.PlainStructured
PlainStructured.WithoutStrategy
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(JaxbVisitor visitor) static String
bytesToString
(byte[] clearBytes) boolean
canSupportType
(Class<?> type) clearValue
(String clearValue) clone()
boolean
Indicates whether some other object is "equal to" this one.static ProtectedStringType
fromClearValue
(String clearValue) byte[]
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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.prism.binding.PlainStructured.WithoutStrategy
equals, hashCode
-
Field Details
-
COMPLEX_TYPE
-
-
Constructor Details
-
ProtectedStringType
public ProtectedStringType()
-
-
Method Details
-
fromClearValue
-
getClearBytes
public byte[] getClearBytes()- Specified by:
getClearBytes
in interfaceProtectedData<String>
-
setClearBytes
public void setClearBytes(byte[] bytes) - Specified by:
setClearBytes
in interfaceProtectedData<String>
-
clearValue
- Overrides:
clearValue
in classProtectedDataType<String>
-
canSupportType
- Specified by:
canSupportType
in interfaceProtectedData<String>
-
equals
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
- Specified by:
clone
in interfacePlainStructured
- Specified by:
clone
in classProtectedDataType<String>
-
bytesToString
-
accept
- Specified by:
accept
in interfaceJaxbVisitable
-