Class EncryptedTypeImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.encryption.impl.EncryptedTypeImpl
- All Implemented Interfaces:
XMLObject
,EncryptedType
- Direct Known Subclasses:
EncryptedDataImpl
,EncryptedKeyImpl
Abstract implementation of
EncryptedType
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CipherData
CipherData child element.private String
Encoding attribute value.private EncryptionMethod
EncryptionMethod child element.private EncryptionProperties
EncryptionProperties child element.private String
id attribute value.private KeyInfo
EncryptionMethod child element.private String
MimeType attribute value.private String
Type attribute value.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
ConstructorsModifierConstructorDescriptionprotected
EncryptedTypeImpl
(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionGets the CipherData child element.Gets the encoding applied to the plaintext content prior to encryption.Gets the EncryptionMethod child element.Gets the EncryptionProperties child element.getID()
Gets the unique ID for the XML element.Gets the KeyInfo child element.Gets the MIME type of the plaintext content.Gets an unmodifiable list of child elements in the order that they will appear in the DOM.getType()
Gets the type information for the plaintext content.void
setCipherData
(CipherData newCipherData) Sets the CipherData child element.void
setEncoding
(String newEncoding) Sets the encoding applied to the plaintext content prior to encryption.void
setEncryptionMethod
(EncryptionMethod newEncryptionMethod) Sets the EncryptionMethod child element.void
setEncryptionProperties
(EncryptionProperties newEncryptionProperties) Sets the EncryptionProperties child element.void
Sets the unique ID for the XML element.void
setKeyInfo
(KeyInfo newKeyInfo) Sets the KeyInfo child element.void
setMimeType
(String newMimeType) Sets the MIME type of the plaintext content.void
Sets the type information for the plaintext content.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.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 Details
-
id
id attribute value. -
type
Type attribute value. -
mimeType
MimeType attribute value. -
encoding
Encoding attribute value. -
encryptionMethod
EncryptionMethod child element. -
keyInfo
EncryptionMethod child element. -
cipherData
CipherData child element. -
encryptionProperties
EncryptionProperties child element.
-
-
Constructor Details
-
EncryptedTypeImpl
Constructor.- Parameters:
namespaceURI
- namespace URIelementLocalName
- local namenamespacePrefix
- namespace prefix
-
-
Method Details
-
getID
Gets the unique ID for the XML element.- Specified by:
getID
in interfaceEncryptedType
- Returns:
- the unique ID for the XML element
-
setID
Sets the unique ID for the XML element.- Specified by:
setID
in interfaceEncryptedType
- Parameters:
newID
- the unique ID for the XML element
-
getType
Gets the type information for the plaintext content.- Specified by:
getType
in interfaceEncryptedType
- Returns:
- the type information for the plaintext content
-
setType
Sets the type information for the plaintext content.- Specified by:
setType
in interfaceEncryptedType
- Parameters:
newType
- the type information for the plaintext content
-
getMimeType
Gets the MIME type of the plaintext content.- Specified by:
getMimeType
in interfaceEncryptedType
- Returns:
- the MIME type of the plaintext content
-
setMimeType
Sets the MIME type of the plaintext content.- Specified by:
setMimeType
in interfaceEncryptedType
- Parameters:
newMimeType
- the MIME type of the plaintext content
-
getEncoding
Gets the encoding applied to the plaintext content prior to encryption.- Specified by:
getEncoding
in interfaceEncryptedType
- Returns:
- the encoding applied to the plaintext content prior to encryption
-
setEncoding
Sets the encoding applied to the plaintext content prior to encryption.- Specified by:
setEncoding
in interfaceEncryptedType
- Parameters:
newEncoding
- the encoding applied to the plaintext content prior to encryption
-
getEncryptionMethod
Gets the EncryptionMethod child element.- Specified by:
getEncryptionMethod
in interfaceEncryptedType
- Returns:
- the EncryptionMethod child element
-
setEncryptionMethod
Sets the EncryptionMethod child element.- Specified by:
setEncryptionMethod
in interfaceEncryptedType
- Parameters:
newEncryptionMethod
- the new EncryptionMethod child element
-
getKeyInfo
Gets the KeyInfo child element.- Specified by:
getKeyInfo
in interfaceEncryptedType
- Returns:
- the KeyInfo child element
-
setKeyInfo
Sets the KeyInfo child element.- Specified by:
setKeyInfo
in interfaceEncryptedType
- Parameters:
newKeyInfo
- the new KeyInfo child element
-
getCipherData
Gets the CipherData child element.- Specified by:
getCipherData
in interfaceEncryptedType
- Returns:
- the CipherData child element
-
setCipherData
Sets the CipherData child element.- Specified by:
setCipherData
in interfaceEncryptedType
- Parameters:
newCipherData
- the new CipherData child element
-
getEncryptionProperties
Gets the EncryptionProperties child element.- Specified by:
getEncryptionProperties
in interfaceEncryptedType
- Returns:
- the EncryptionProperties child element
-
setEncryptionProperties
Sets the EncryptionProperties child element.- Specified by:
setEncryptionProperties
in interfaceEncryptedType
- Parameters:
newEncryptionProperties
- the new EncryptionProperties child element
-
getOrderedChildren
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.- Specified by:
getOrderedChildren
in interfaceXMLObject
- Returns:
- ordered list of child elements
-