org.apache.abdera.security.xmlsec
Class XmlEncryptionOptions

java.lang.Object
  extended by org.apache.abdera.security.xmlsec.XmlSecurityOptions
      extended by org.apache.abdera.security.xmlsec.XmlEncryptionOptions
All Implemented Interfaces:
EncryptionOptions, SecurityOptions

public class XmlEncryptionOptions
extends XmlSecurityOptions
implements EncryptionOptions


Field Summary
 
Fields inherited from class org.apache.abdera.security.xmlsec.XmlSecurityOptions
abdera, parser
 
Constructor Summary
protected XmlEncryptionOptions(Abdera abdera)
           
 
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 class org.apache.abdera.security.xmlsec.XmlSecurityOptions
getParser, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.security.SecurityOptions
getParser, setParser
 

Constructor Detail

XmlEncryptionOptions

protected XmlEncryptionOptions(Abdera abdera)
Method Detail

getDataEncryptionKey

public java.security.Key getDataEncryptionKey()
Description copied from interface: EncryptionOptions
Return the secret key used to encrypt/decrypt the document content

Specified by:
getDataEncryptionKey in interface EncryptionOptions

setDataEncryptionKey

public void setDataEncryptionKey(java.security.Key key)
Description copied from interface: EncryptionOptions
Set the secret key used to encrypt/decrypt the document content

Specified by:
setDataEncryptionKey in interface EncryptionOptions

getKeyEncryptionKey

public java.security.Key getKeyEncryptionKey()
Description copied from interface: EncryptionOptions
Return the secret key used to encrypt/decrypt the data encryption key

Specified by:
getKeyEncryptionKey in interface EncryptionOptions

setKeyEncryptionKey

public void setKeyEncryptionKey(java.security.Key key)
Description copied from interface: EncryptionOptions
Set the secret key used to encrypt/decrypt the data encryption key

Specified by:
setKeyEncryptionKey in interface EncryptionOptions

getKeyCipherAlgorithm

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

Specified by:
getKeyCipherAlgorithm in interface EncryptionOptions

setKeyCipherAlgorithm

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

Specified by:
setKeyCipherAlgorithm in interface EncryptionOptions

getDataCipherAlgorithm

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

Specified by:
getDataCipherAlgorithm in interface EncryptionOptions

setDataCipherAlgorithm

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

Specified by:
setDataCipherAlgorithm in interface EncryptionOptions

includeKeyInfo

public boolean includeKeyInfo()
Description copied from interface: EncryptionOptions
Return true if the encryption should include information about the key The default is false

Specified by:
includeKeyInfo in interface EncryptionOptions

setIncludeKeyInfo

public void setIncludeKeyInfo(boolean includeKeyInfo)
Description copied from interface: EncryptionOptions
Set whether the encryption should include information about the key The default is false

Specified by:
setIncludeKeyInfo in interface EncryptionOptions