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
FieldsFields inherited from class com.evolveum.prism.xml.ns._public.types_3.ProtectedDataType
ATTRIBUTE_XML_ENC_ALGORITHM, content, F_CLEAR_VALUE, F_ENCRYPTED_DATA, F_EXTERNAL_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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(JaxbVisitor visitor) static StringbytesToString(byte[] clearBytes) booleancanSupportType(Class<?> type) clearValue(String clearValue) clone()booleanIndicates whether some other object is "equal to" this one.static ProtectedStringTypefromClearValue(String clearValue) byte[]inthashCode()voidsetClearBytes(byte[] bytes) Methods inherited from class com.evolveum.prism.xml.ns._public.types_3.ProtectedDataType
canGetCleartext, clear, cloneTo, destroyCleartext, getClearValue, getContent, getEncryptedDataType, getExternalData, getHashedDataType, isEmpty, isEncrypted, isExternal, isHashed, setClearValue, setEncryptedData, setExternalData, setHashedData, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.evolveum.midpoint.prism.binding.PlainStructured.WithoutStrategy
equals, hashCodeMethods inherited from interface com.evolveum.midpoint.prism.crypto.ProtectedData
hasClearValue
-
Field Details
-
COMPLEX_TYPE
-
-
Constructor Details
-
ProtectedStringType
public ProtectedStringType()
-
-
Method Details
-
fromClearValue
-
getClearBytes
public byte[] getClearBytes()- Specified by:
getClearBytesin interfaceProtectedData<String>
-
setClearBytes
public void setClearBytes(byte[] bytes) - Specified by:
setClearBytesin interfaceProtectedData<String>
-
clearValue
- Overrides:
clearValuein classProtectedDataType<String>
-
canSupportType
- Specified by:
canSupportTypein interfaceProtectedData<String>
-
equals
Description copied from class:ProtectedDataTypeIndicates 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:
hashCodein classProtectedDataType<String>
-
clone
- Specified by:
clonein interfacePlainStructured- Specified by:
clonein classProtectedDataType<String>
-
bytesToString
-
accept
- Specified by:
acceptin interfaceJaxbVisitable
-