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

public abstract class EncryptedTypeImpl extends AbstractXMLObject implements EncryptedType
Abstract implementation of EncryptedType.
  • Field Details

    • id

      private String id
      id attribute value.
    • type

      private String type
      Type attribute value.
    • mimeType

      private String mimeType
      MimeType attribute value.
    • encoding

      private String encoding
      Encoding attribute value.
    • encryptionMethod

      private EncryptionMethod encryptionMethod
      EncryptionMethod child element.
    • keyInfo

      private KeyInfo keyInfo
      EncryptionMethod child element.
    • cipherData

      private CipherData cipherData
      CipherData child element.
    • encryptionProperties

      private EncryptionProperties encryptionProperties
      EncryptionProperties child element.
  • Constructor Details

    • EncryptedTypeImpl

      protected EncryptedTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
      Constructor.
      Parameters:
      namespaceURI - namespace URI
      elementLocalName - local name
      namespacePrefix - namespace prefix
  • Method Details

    • getID

      public String getID()
      Gets the unique ID for the XML element.
      Specified by:
      getID in interface EncryptedType
      Returns:
      the unique ID for the XML element
    • setID

      public void setID(String newID)
      Sets the unique ID for the XML element.
      Specified by:
      setID in interface EncryptedType
      Parameters:
      newID - the unique ID for the XML element
    • getType

      public String getType()
      Gets the type information for the plaintext content.
      Specified by:
      getType in interface EncryptedType
      Returns:
      the type information for the plaintext content
    • setType

      public void setType(String newType)
      Sets the type information for the plaintext content.
      Specified by:
      setType in interface EncryptedType
      Parameters:
      newType - the type information for the plaintext content
    • getMimeType

      public String getMimeType()
      Gets the MIME type of the plaintext content.
      Specified by:
      getMimeType in interface EncryptedType
      Returns:
      the MIME type of the plaintext content
    • setMimeType

      public void setMimeType(String newMimeType)
      Sets the MIME type of the plaintext content.
      Specified by:
      setMimeType in interface EncryptedType
      Parameters:
      newMimeType - the MIME type of the plaintext content
    • getEncoding

      public String getEncoding()
      Gets the encoding applied to the plaintext content prior to encryption.
      Specified by:
      getEncoding in interface EncryptedType
      Returns:
      the encoding applied to the plaintext content prior to encryption
    • setEncoding

      public void setEncoding(String newEncoding)
      Sets the encoding applied to the plaintext content prior to encryption.
      Specified by:
      setEncoding in interface EncryptedType
      Parameters:
      newEncoding - the encoding applied to the plaintext content prior to encryption
    • getEncryptionMethod

      public EncryptionMethod getEncryptionMethod()
      Gets the EncryptionMethod child element.
      Specified by:
      getEncryptionMethod in interface EncryptedType
      Returns:
      the EncryptionMethod child element
    • setEncryptionMethod

      public void setEncryptionMethod(EncryptionMethod newEncryptionMethod)
      Sets the EncryptionMethod child element.
      Specified by:
      setEncryptionMethod in interface EncryptedType
      Parameters:
      newEncryptionMethod - the new EncryptionMethod child element
    • getKeyInfo

      public KeyInfo getKeyInfo()
      Gets the KeyInfo child element.
      Specified by:
      getKeyInfo in interface EncryptedType
      Returns:
      the KeyInfo child element
    • setKeyInfo

      public void setKeyInfo(KeyInfo newKeyInfo)
      Sets the KeyInfo child element.
      Specified by:
      setKeyInfo in interface EncryptedType
      Parameters:
      newKeyInfo - the new KeyInfo child element
    • getCipherData

      public CipherData getCipherData()
      Gets the CipherData child element.
      Specified by:
      getCipherData in interface EncryptedType
      Returns:
      the CipherData child element
    • setCipherData

      public void setCipherData(CipherData newCipherData)
      Sets the CipherData child element.
      Specified by:
      setCipherData in interface EncryptedType
      Parameters:
      newCipherData - the new CipherData child element
    • getEncryptionProperties

      public EncryptionProperties getEncryptionProperties()
      Gets the EncryptionProperties child element.
      Specified by:
      getEncryptionProperties in interface EncryptedType
      Returns:
      the EncryptionProperties child element
    • setEncryptionProperties

      public void setEncryptionProperties(EncryptionProperties newEncryptionProperties)
      Sets the EncryptionProperties child element.
      Specified by:
      setEncryptionProperties in interface EncryptedType
      Parameters:
      newEncryptionProperties - the new EncryptionProperties child element
    • getOrderedChildren

      public List<XMLObject> getOrderedChildren()
      Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
      Specified by:
      getOrderedChildren in interface XMLObject
      Returns:
      ordered list of child elements