Skip navigation links

Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10678-05


oracle.security.xmlsec.wss.util
Class WSSEncryptionParams

java.lang.Object
  extended by oracle.security.xmlsec.wss.util.WSSEncryptionParams


public class WSSEncryptionParams
extends java.lang.Object

A specification of algorithms and keys for using with XML encryption. Note: this used to be deprecated, but not any more


Constructor Summary
WSSEncryptionParams(java.lang.String dataEncAlg, javax.crypto.SecretKey dataEncKey, java.lang.String dataEncKeyName)
          Deprecated.  
WSSEncryptionParams(java.lang.String dataEncAlg, javax.crypto.SecretKey dataEncKey, java.lang.String keyEncAlg, java.security.PublicKey keyEncKey, oracle.security.xmlsec.keys.KeyInfoData keyInfoData)
          Create a new WSSEncryptionParams instance.
WSSEncryptionParams(java.lang.String dataEncAlg, java.lang.String keyEncAlg, java.security.cert.X509Certificate keyEncCert, java.lang.String keyEncKeyName, byte[] certId)
          Deprecated.  
WSSEncryptionParams(WSSEncryptionParams encParam)
           

 

Method Summary
protected  java.lang.Object clone()
           
 byte[] getCertId()
          Get the KeyIdentifier.
 java.lang.String getDataEncryptionAlg()
          Get the Content Encryption Algorithm.
 javax.crypto.SecretKey getDataEncryptionKey()
          Get the Content Encryption Key.
 java.lang.String getDataEncryptionKeyName()
          Get the name of the Content Encryption Key.
 byte[] getIv()
           
 java.lang.String getKeyEncryptionAlg()
          Get the Key Encryption Algorithm.
 java.security.cert.X509Certificate getKeyEncryptionCert()
          Get the Public Key Certificate of the key encryption key.
 java.security.PublicKey getKeyEncryptionKey()
          Get the Key Encryption Key.
 java.lang.String getKeyEncryptionKeyName()
          Get the Key Encryption Key Name.
 oracle.security.xmlsec.keys.KeyInfoData getKeyInfoData()
           
 void setDataEncryptionKey(javax.crypto.SecretKey dataEncKey)
          Set the Content Encryption Key.
 void setIv(byte[] iv)
           
 void setKeyEncryptionAlg(java.lang.String keyEncAlg)
          Set the Key Encryption Algorithm.
 void setKeyEncryptionKey(java.security.PublicKey keyEncKey)
          Set the Key Encryption Key.
 void setKeyInfoData(oracle.security.xmlsec.keys.KeyInfoData keyInfoData)
           

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

WSSEncryptionParams

public WSSEncryptionParams(java.lang.String dataEncAlg,
                           javax.crypto.SecretKey dataEncKey,
                           java.lang.String dataEncKeyName)
Deprecated. 
Create a new WSSEncryptionParams instance.
Parameters:
dataEncAlg - The content encryption algorithm.
dataEncKey - The content encryption key.
dataEncKeyName - The content encryption key name.

WSSEncryptionParams

public WSSEncryptionParams(java.lang.String dataEncAlg,
                           javax.crypto.SecretKey dataEncKey,
                           java.lang.String keyEncAlg,
                           java.security.PublicKey keyEncKey,
                           oracle.security.xmlsec.keys.KeyInfoData keyInfoData)
Create a new WSSEncryptionParams instance.
Parameters:
dataEncAlg - The content encryption algorithm.
dataEncKey - The content encryption key.
dataEncKeyName - The content encryption key name.

WSSEncryptionParams

public WSSEncryptionParams(java.lang.String dataEncAlg,
                           java.lang.String keyEncAlg,
                           java.security.cert.X509Certificate keyEncCert,
                           java.lang.String keyEncKeyName,
                           byte[] certId)
Deprecated. 
Create a new WSSEncryptionParams instance.
Parameters:
dataEncAlg - The content encryption algorithm.
keyEncAlg - The key encryption algorithm.
keyEncCert - The key encryption key.
keyEncKeyName - The key encryption key name.
certId - The public key identifier.

WSSEncryptionParams

public WSSEncryptionParams(WSSEncryptionParams encParam)

Method Detail

getDataEncryptionAlg

public java.lang.String getDataEncryptionAlg()
Get the Content Encryption Algorithm.
Returns:
The encryption algorithm string.

getDataEncryptionKey

public javax.crypto.SecretKey getDataEncryptionKey()
Get the Content Encryption Key.
Returns:
The encryption key.

setDataEncryptionKey

public void setDataEncryptionKey(javax.crypto.SecretKey dataEncKey)
Set the Content Encryption Key.

getDataEncryptionKeyName

public java.lang.String getDataEncryptionKeyName()
Get the name of the Content Encryption Key.
Returns:
The encryption key name.

getKeyEncryptionAlg

public java.lang.String getKeyEncryptionAlg()
Get the Key Encryption Algorithm.
Returns:
The encryption algorithm string.

setKeyEncryptionAlg

public void setKeyEncryptionAlg(java.lang.String keyEncAlg)
Set the Key Encryption Algorithm.
Parameters:
keyEncAlg - The encryption algorithm string.

getKeyEncryptionCert

public java.security.cert.X509Certificate getKeyEncryptionCert()
Get the Public Key Certificate of the key encryption key.
Returns:
The corresponding X.509 certificate.

getKeyEncryptionKey

public java.security.PublicKey getKeyEncryptionKey()
Get the Key Encryption Key.
Returns:
The encryption key.

setKeyEncryptionKey

public void setKeyEncryptionKey(java.security.PublicKey keyEncKey)
Set the Key Encryption Key.
Parameters:
keyEncKey - The encryption key.

getKeyEncryptionKeyName

public java.lang.String getKeyEncryptionKeyName()
Get the Key Encryption Key Name.
Returns:
The encryption key name.

getCertId

public byte[] getCertId()
Get the KeyIdentifier.
Returns:
The key identifier bytes.

getIv

public byte[] getIv()

setIv

public void setIv(byte[] iv)

getKeyInfoData

public oracle.security.xmlsec.keys.KeyInfoData getKeyInfoData()

setKeyInfoData

public void setKeyInfoData(oracle.security.xmlsec.keys.KeyInfoData keyInfoData)

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

Skip navigation links

Oracle Fusion Middleware Web Services Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10678-05


Copyright © 2005, 2013 , Oracle. All rights reserved.