Class XMLCipher.Factory.CipherDataImpl

java.lang.Object
org.apache.xml.security.encryption.XMLCipher.Factory.CipherDataImpl
All Implemented Interfaces:
CipherData
Enclosing class:
XMLCipher.Factory

private class XMLCipher.Factory.CipherDataImpl extends Object implements CipherData
  • Field Details

  • Constructor Details

    • CipherDataImpl

      public CipherDataImpl(int type)
      Parameters:
      type -
  • Method Details

    • getCipherValue

      public CipherValue getCipherValue()
      Returns the cipher value as a base64 encoded byte array.
      Specified by:
      getCipherValue in interface CipherData
      Returns:
      the CipherData's value.
    • setCipherValue

      public void setCipherValue(CipherValue value) throws XMLEncryptionException
      Sets the CipherData's value.
      Specified by:
      setCipherValue in interface CipherData
      Parameters:
      value - the value of the CipherData.
      Throws:
      XMLEncryptionException
    • getCipherReference

      public CipherReference getCipherReference()
      Returns a reference to an external location containing the encrypted octet sequence (byte array).
      Specified by:
      getCipherReference in interface CipherData
      Returns:
      the reference to an external location containing the encrypted octet sequence.
    • setCipherReference

      public void setCipherReference(CipherReference reference) throws XMLEncryptionException
      Sets the CipherData's reference.
      Specified by:
      setCipherReference in interface CipherData
      Parameters:
      reference - an external location containing the encrypted octet sequence.
      Throws:
      XMLEncryptionException
    • getDataType

      public int getDataType()
      Returns the type of encrypted data contained in the CipherData.
      Specified by:
      getDataType in interface CipherData
      Returns:
      VALUE_TYPE if the encrypted data is contained as CipherValue or REFERENCE_TYPE if the encrypted data is contained as CipherReference.
    • toElement

      Element toElement()