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
 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 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 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 EncryptionOptions setDataEncryptionKey(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 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 EncryptionOptions setKeyEncryptionKey(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 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 EncryptionOptions setKeyCipherAlgorithm(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 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 EncryptionOptions setDataCipherAlgorithm(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 EncryptionOptions 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


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