javax.xml.crypto.enc.spec
Class RSAOAEPParameterSpec
- java.lang.Object
-
- 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
-
-
Field Summary
Fields Modifier and Type Field and Description private DigestMethod
digestMethod
private byte[]
oaepParams
-
Constructor Summary
Constructors Constructor and Description RSAOAEPParameterSpec(DigestMethod digestMethod)
Creates anRSAOAEPParameterSpec
with the specified digest method.RSAOAEPParameterSpec(DigestMethod digestMethod, byte[] oaepParams)
Creates anRSAOAEPParameterSpec
with the specified digest method and OAEP encoding parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DigestMethod
getDigestMethod()
Returns the digest method.byte[]
getOAEPParams()
Returns the encoded OAEP parameters.
-
-
-
Field Detail
-
digestMethod
private DigestMethod digestMethod
-
oaepParams
private byte[] oaepParams
-
-
Constructor Detail
-
RSAOAEPParameterSpec
public RSAOAEPParameterSpec(DigestMethod digestMethod)
Creates anRSAOAEPParameterSpec
with the specified digest method.- Parameters:
digestMethod
- the digest method- Throws:
java.lang.NullPointerException
- if digest method isnull
-
RSAOAEPParameterSpec
public RSAOAEPParameterSpec(DigestMethod digestMethod, byte[] oaepParams)
Creates anRSAOAEPParameterSpec
with the specified digest method and OAEP encoding parameters.- Parameters:
digestMethod
- the digest methodoaepParams
- the encoded OAEP parameters. The array is cloned to prevent subsequent modification.- Throws:
java.lang.NullPointerException
- if digest method oroaepParams
isnull
-
-
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
-
-