XML Digital Signature and Encryption, 1.0

javax.xml.crypto.enc.spec
Class RSAOAEPParameterSpec

java.lang.Object
  extended by javax.xml.crypto.enc.spec.RSAOAEPParameterSpec
All Implemented Interfaces:
java.security.spec.AlgorithmParameterSpec, EncryptionMethodParameterSpec

public final class RSAOAEPParameterSpec
extends java.lang.Object
implements EncryptionMethodParameterSpec

Parameters for the XML Encryption RSA-OAEP algorithm.

See Also:
EncryptionMethod

Constructor Summary
RSAOAEPParameterSpec(DigestMethod digestMethod)
          Creates an RSAOAEPParameterSpec with the specified digest method.
RSAOAEPParameterSpec(DigestMethod digestMethod, byte[] oaepParams)
          Creates an RSAOAEPParameterSpec with the specified digest method and OAEP encoding parameters.
 
Method Summary
 DigestMethod getDigestMethod()
          Returns the digest method.
 byte[] getOAEPParams()
          Returns the encoded OAEP parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RSAOAEPParameterSpec

public RSAOAEPParameterSpec(DigestMethod digestMethod)
Creates an RSAOAEPParameterSpec with the specified digest method.

Parameters:
digestMethod - the digest method
Throws:
java.lang.NullPointerException - if digest method is null

RSAOAEPParameterSpec

public RSAOAEPParameterSpec(DigestMethod digestMethod,
                            byte[] oaepParams)
Creates an RSAOAEPParameterSpec with the specified digest method and OAEP encoding parameters.

Parameters:
digestMethod - the digest method
oaepParams - the encoded OAEP parameters. The array is cloned to prevent subsequent modification.
Throws:
java.lang.NullPointerException - if digest method or oaepParams is null
Method Detail

getDigestMethod

public DigestMethod getDigestMethod()
Returns the digest method.

Returns:
the digest method

getOAEPParams

public byte[] getOAEPParams()
Returns the encoded OAEP parameters. Each invocation of this method returns a new clone.

Returns:
the encoded OAEP parameters. The array is cloned to prevent subsequent modification, or null if not specified

XML Digital Signature and Encryption, 1.0

Copyright © 2003-2004, IBM Corporation and Sun Microsystems, Inc. All rights reserved.
Please send comments to: jsr-106-comments@jcp.org