javax.xml.crypto.enc

Interface XMLEncryptContext

All Superinterfaces:
XMLCryptoContext
All known implementing classes:
DOMEncryptContext

  1. public interface XMLEncryptContext
  2. extends XMLCryptoContext
Contains context information for encrypting XML EncryptedType structures. This interface is primarily intended for type-safety.
See Also:
EncryptedType.encrypt(javax.xml.crypto.enc.XMLEncryptContext)

Method Summary

Modifier and Type Method and Description
  1. EncryptionMethod
getEncryptionMethod()
Returns the EncryptionMethod for encryption if an EncryptionMethod will not be present in the EncryptedType
  1. javax.crypto.spec.IvParameterSpec
getIvParameterSpec()
Returns the IvParameterSpec to be use for block encryption if an initialization vector is needed.
  1. void
setEncryptionMethod(EncryptionMethod encMethod)
Specifies the EncryptionMethod for encryption if an EncryptionMethod will not be present in the EncryptedType
  1. void
setIvParameterSpec(javax.crypto.spec.IvParameterSpec ivSpec)
Specifies the IvParameterSpec for block encryption if an initialization vector is needed.
Methods inherited from interface javax.xml.crypto.XMLCryptoContext
get, getBaseURI, getDefaultNamespacePrefix, getKeySelector, getNamespacePrefix, getProperty, getURIDereferencer, put, putNamespacePrefix, setBaseURI, setDefaultNamespacePrefix, setKeySelector, setProperty, setURIDereferencer

Method Detail

getEncryptionMethod

  1. EncryptionMethod getEncryptionMethod( )
Returns the EncryptionMethod for encryption if an EncryptionMethod will not be present in the EncryptedType
Returns:
the EncryptionMethod for encryption

setEncryptionMethod

  1. void setEncryptionMethod(EncryptionMethod encMethod)
Specifies the EncryptionMethod for encryption if an EncryptionMethod will not be present in the EncryptedType
Parameters:
encMethod - the EncryptionMethod for encryption

getIvParameterSpec

  1. javax.crypto.spec.IvParameterSpec getIvParameterSpec( )
Returns the IvParameterSpec to be use for block encryption if an initialization vector is needed.
Returns:
the IvParameterSpec to be used for block encryption

setIvParameterSpec

  1. void setIvParameterSpec(javax.crypto.spec.IvParameterSpec ivSpec)
Specifies the IvParameterSpec for block encryption if an initialization vector is needed. It is recommended to not to reuse the IvParameterSpec for different encryption instances.
Parameters:
ivSpec - the initialization vector for block encryption