Class XMLCipher.Factory.CipherDataImpl

    • Constructor Detail

      • CipherDataImpl

        public CipherDataImpl​(int type)
        Parameters:
        type -
    • Method Detail

      • 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.
      • 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.
      • 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

        org.w3c.dom.Element toElement()