javax.xml.crypto.enc.spec

Class RSAOAEPParameterSpec

  1. java.lang.Object
  2. extended byjavax.xml.crypto.enc.spec.RSAOAEPParameterSpec
All implemented interfaces:
java.security.spec.AlgorithmParameterSpec, EncryptionMethodParameterSpec

  1. public final class RSAOAEPParameterSpec
  2. extends java.lang.Object
  3. implements EncryptionMethodParameterSpec
Parameters for the XML Encryption RSA-OAEP algorithm.
See Also:
EncryptionMethod

Constructor Summary

Constructor and Description
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

Modifier and Type Method and Description
  1. DigestMethod
getDigestMethod()
Returns the digest method.
  1. 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

  1. 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

  1. public RSAOAEPParameterSpec(DigestMethod digestMethod,
  2. 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

  1. public DigestMethod getDigestMethod( )
Returns the digest method.
Returns:
the digest method

getOAEPParams

  1. 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