Class EncryptedKeyImpl
- java.lang.Object
-
- org.opensaml.core.xml.AbstractXMLObject
-
- org.opensaml.xmlsec.encryption.impl.EncryptedTypeImpl
-
- org.opensaml.xmlsec.encryption.impl.EncryptedKeyImpl
-
- All Implemented Interfaces:
XMLObject,EncryptedKey,EncryptedType
public class EncryptedKeyImpl extends EncryptedTypeImpl implements EncryptedKey
Concrete implementation ofEncryptedKey.
-
-
Field Summary
Fields Modifier and Type Field Description private CarriedKeyNamecarriedKeyNameCarriedKeyName value.private StringrecipientRecipient value.private ReferenceListreferenceListReferenceList value.-
Fields inherited from interface org.opensaml.xmlsec.encryption.EncryptedKey
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, RECIPIENT_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
Fields inherited from interface org.opensaml.xmlsec.encryption.EncryptedType
ENCODING_ATTRIB_NAME, ID_ATTRIB_NAME, MIMETYPE_ATTRIB_NAME, TYPE_ATTRIB_NAME, TYPE_LOCAL_NAME, TYPE_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEncryptedKeyImpl(String namespaceURI, String elementLocalName, String namespacePrefix)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CarriedKeyNamegetCarriedKeyName()Gets the child element carrying the human readable name for this key.List<XMLObject>getOrderedChildren()Gets an unmodifiable list of child elements in the order that they will appear in the DOM.StringgetRecipient()Gets the hint about for whom this encrypted key is intended.ReferenceListgetReferenceList()Gets the child element containing pointers to EncryptedData and EncryptedKey elements encrypted using this key.voidsetCarriedKeyName(CarriedKeyName newCarriedKeyName)Sets the child element carrying the human readable name for this key.voidsetRecipient(String newRecipient)Sets the hint about for whom this encrypted key is intended.voidsetReferenceList(ReferenceList newReferenceList)Sets the child element containing pointers to EncryptedData and EncryptedKey elements encrypted using this key.-
Methods inherited from class org.opensaml.xmlsec.encryption.impl.EncryptedTypeImpl
getCipherData, getEncoding, getEncryptionMethod, getEncryptionProperties, getID, getKeyInfo, getMimeType, getType, setCipherData, setEncoding, setEncryptionMethod, setEncryptionProperties, setID, setKeyInfo, setMimeType, setType
-
Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensaml.xmlsec.encryption.EncryptedType
getCipherData, getEncoding, getEncryptionMethod, getEncryptionProperties, getID, getKeyInfo, getMimeType, getType, setCipherData, setEncoding, setEncryptionMethod, setEncryptionProperties, setID, setKeyInfo, setMimeType, setType
-
Methods inherited from interface org.opensaml.core.xml.XMLObject
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
-
-
-
Field Detail
-
recipient
private String recipient
Recipient value.
-
carriedKeyName
private CarriedKeyName carriedKeyName
CarriedKeyName value.
-
referenceList
private ReferenceList referenceList
ReferenceList value.
-
-
Method Detail
-
getRecipient
public String getRecipient()
Gets the hint about for whom this encrypted key is intended.- Specified by:
getRecipientin interfaceEncryptedKey- Returns:
- the hint about who this encrypted key is intended for
-
setRecipient
public void setRecipient(String newRecipient)
Sets the hint about for whom this encrypted key is intended.- Specified by:
setRecipientin interfaceEncryptedKey- Parameters:
newRecipient- the hint about who this encrypted key is intended for
-
getReferenceList
public ReferenceList getReferenceList()
Gets the child element containing pointers to EncryptedData and EncryptedKey elements encrypted using this key.- Specified by:
getReferenceListin interfaceEncryptedKey- Returns:
- the element containing a list of pointers to encrypted elements
-
setReferenceList
public void setReferenceList(ReferenceList newReferenceList)
Sets the child element containing pointers to EncryptedData and EncryptedKey elements encrypted using this key.- Specified by:
setReferenceListin interfaceEncryptedKey- Parameters:
newReferenceList- the new reference list for this encrypted key
-
getCarriedKeyName
public CarriedKeyName getCarriedKeyName()
Gets the child element carrying the human readable name for this key.- Specified by:
getCarriedKeyNamein interfaceEncryptedKey- Returns:
- the human readable name for this key
-
setCarriedKeyName
public void setCarriedKeyName(CarriedKeyName newCarriedKeyName)
Sets the child element carrying the human readable name for this key.- Specified by:
setCarriedKeyNamein interfaceEncryptedKey- Parameters:
newCarriedKeyName- the human readable name for this key
-
getOrderedChildren
public List<XMLObject> getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildrenin interfaceXMLObject- Overrides:
getOrderedChildrenin classEncryptedTypeImpl- Returns:
- ordered list of child elements
-
-