org.apache.abdera.security
Interface EncryptionOptions

All Superinterfaces:
SecurityOptions

public interface EncryptionOptions
extends SecurityOptions

Provides access to the information necessary to encrypt or decrypt a document


Method Summary
 String getDataCipherAlgorithm()
          Return the cipher algorithm used to decrypt/encrypt the document content The default is "http://www.w3.org/2001/04/xmlenc#aes128-cbc"
 Key getDataEncryptionKey()
          Return the secret key used to encrypt/decrypt the document content
 String getKeyCipherAlgorithm()
          Return the cipher algorithm used to decrypt/encrypt the data encryption key The default is "http://www.w3.org/2001/04/xmlenc#kw-aes128"
 Key getKeyEncryptionKey()
          Return the secret key used to encrypt/decrypt the data encryption key
 boolean includeKeyInfo()
          Return true if the encryption should include information about the key The default is false
 EncryptionOptions setDataCipherAlgorithm(String alg)
          Set the cipher algorithm used to decyrpt/encrypt the document content The default is "http://www.w3.org/2001/04/xmlenc#aes128-cbc"
 EncryptionOptions setDataEncryptionKey(Key key)
          Set the secret key used to encrypt/decrypt the document content
 EncryptionOptions setIncludeKeyInfo(boolean includeKeyInfo)
          Set whether the encryption should include information about the key The default is false
 EncryptionOptions setKeyCipherAlgorithm(String alg)
          Set the cipher algorithm used to decrypt/encrypt the data encryption key The default is "http://www.w3.org/2001/04/xmlenc#kw-aes128"
 EncryptionOptions setKeyEncryptionKey(Key key)
          Set the secret key used to encrypt/decrypt the data encryption key
 
Methods inherited from interface org.apache.abdera.security.SecurityOptions
getParser, setParser
 

Method Detail

getDataEncryptionKey

Key getDataEncryptionKey()
Return the secret key used to encrypt/decrypt the document content


setDataEncryptionKey

EncryptionOptions setDataEncryptionKey(Key key)
Set the secret key used to encrypt/decrypt the document content


getKeyEncryptionKey

Key getKeyEncryptionKey()
Return the secret key used to encrypt/decrypt the data encryption key


setKeyEncryptionKey

EncryptionOptions setKeyEncryptionKey(Key key)
Set the secret key used to encrypt/decrypt the data encryption key


getKeyCipherAlgorithm

String getKeyCipherAlgorithm()
Return the cipher algorithm used to decrypt/encrypt the data encryption key The default is "http://www.w3.org/2001/04/xmlenc#kw-aes128"


setKeyCipherAlgorithm

EncryptionOptions setKeyCipherAlgorithm(String alg)
Set the cipher algorithm used to decrypt/encrypt the data encryption key The default is "http://www.w3.org/2001/04/xmlenc#kw-aes128"


getDataCipherAlgorithm

String getDataCipherAlgorithm()
Return the cipher algorithm used to decrypt/encrypt the document content The default is "http://www.w3.org/2001/04/xmlenc#aes128-cbc"


setDataCipherAlgorithm

EncryptionOptions setDataCipherAlgorithm(String alg)
Set the cipher algorithm used to decyrpt/encrypt the document content The default is "http://www.w3.org/2001/04/xmlenc#aes128-cbc"


includeKeyInfo

boolean includeKeyInfo()
Return true if the encryption should include information about the key The default is false


setIncludeKeyInfo

EncryptionOptions setIncludeKeyInfo(boolean includeKeyInfo)
Set whether the encryption should include information about the key The default is false



Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.