public abstract class ProtectedDataType<T> extends Object implements ProtectedData<T>, Serializable, JaxbVisitable
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_XML_ENC_ALGORITHM |
static QName |
COMPLEX_TYPE |
protected List<Object> |
content |
static QName |
F_CLEAR_VALUE |
static QName |
F_ENCRYPTED_DATA |
static QName |
F_HASHED_DATA |
static QName |
F_XML_DSIG_KEY_INFO |
static QName |
F_XML_DSIG_KEY_NAME |
static QName |
F_XML_ENC_ALGORITHM |
static QName |
F_XML_ENC_CIPHER_DATA |
static QName |
F_XML_ENC_CIPHER_VALUE |
static QName |
F_XML_ENC_ENCRYPTED_DATA |
static QName |
F_XML_ENC_ENCRYPTION_METHOD |
static String |
NS_XML_DSIG |
static String |
NS_XML_ENC |
Constructor and Description |
---|
ProtectedDataType() |
Modifier and Type | Method and Description |
---|---|
boolean |
canGetCleartext() |
void |
clear() |
protected void |
cloneTo(ProtectedDataType<T> cloned) |
void |
destroyCleartext() |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
T |
getClearValue() |
List<Object> |
getContent()
TODO
May be either encrypted or hashed or provided in the clear (e.g.
|
EncryptedDataType |
getEncryptedDataType() |
HashedDataType |
getHashedDataType() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isEncrypted() |
boolean |
isHashed() |
void |
setClearValue(T clearValue) |
void |
setEncryptedData(EncryptedDataType encryptedDataType) |
void |
setHashedData(HashedDataType hashedDataType) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canSupportType, getClearBytes, setClearBytes
accept, visitPrismStructure
public static final QName COMPLEX_TYPE
public static final QName F_ENCRYPTED_DATA
public static final QName F_HASHED_DATA
public static final QName F_CLEAR_VALUE
public static final String NS_XML_ENC
public static final String NS_XML_DSIG
public static final QName F_XML_ENC_ENCRYPTED_DATA
public static final QName F_XML_ENC_ENCRYPTION_METHOD
public static final String ATTRIBUTE_XML_ENC_ALGORITHM
public static final QName F_XML_ENC_ALGORITHM
public static final QName F_XML_ENC_CIPHER_DATA
public static final QName F_XML_ENC_CIPHER_VALUE
public static final QName F_XML_DSIG_KEY_INFO
public static final QName F_XML_DSIG_KEY_NAME
public List<Object> getContent()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set
method for the content property.
For example, to add a new item, do as follows:
getContent().add(newItem);
Objects of the following type(s) are allowed in the list
Object
String
JAXBElement
<
EncryptedDataType
>
public EncryptedDataType getEncryptedDataType()
getEncryptedDataType
in interface ProtectedData<T>
public void setEncryptedData(EncryptedDataType encryptedDataType)
setEncryptedData
in interface ProtectedData<T>
public boolean isEncrypted()
isEncrypted
in interface ProtectedData<T>
public HashedDataType getHashedDataType()
getHashedDataType
in interface ProtectedData<T>
public void setHashedData(HashedDataType hashedDataType)
setHashedData
in interface ProtectedData<T>
public boolean isHashed()
isHashed
in interface ProtectedData<T>
public T getClearValue()
getClearValue
in interface ProtectedData<T>
public void setClearValue(T clearValue)
setClearValue
in interface ProtectedData<T>
public boolean canGetCleartext()
canGetCleartext
in interface ProtectedData<T>
public void destroyCleartext()
destroyCleartext
in interface ProtectedData<T>
public void clear()
public boolean isEmpty()
public boolean equals(Object obj)
protected void cloneTo(ProtectedDataType<T> cloned)
Copyright © 2019 Evolveum. All rights reserved.