org.apache.abdera.security
Interface EncryptionOptions

All Superinterfaces:
SecurityOptions
All Known Implementing Classes:
XmlEncryptionOptions

public interface EncryptionOptions
extends SecurityOptions

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


Method Summary
 java.lang.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"
 java.security.Key getDataEncryptionKey()
          Return the secret key used to encrypt/decrypt the document content
 java.lang.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"
 java.security.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
 void setDataCipherAlgorithm(java.lang.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"
 void setDataEncryptionKey(java.security.Key key)
          Set the secret key used to encrypt/decrypt the document content
 void setIncludeKeyInfo(boolean includeKeyInfo)
          Set whether the encryption should include information about the key The default is false
 void setKeyCipherAlgorithm(java.lang.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"
 void setKeyEncryptionKey(java.security.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

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


setDataEncryptionKey

void setDataEncryptionKey(java.security.Key key)
Set the secret key used to encrypt/decrypt the document content


getKeyEncryptionKey

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


setKeyEncryptionKey

void setKeyEncryptionKey(java.security.Key key)
Set the secret key used to encrypt/decrypt the data encryption key


getKeyCipherAlgorithm

java.lang.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

void setKeyCipherAlgorithm(java.lang.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

java.lang.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

void setDataCipherAlgorithm(java.lang.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

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