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
See Also:
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 |
|---|---|
getDigestMethod()
Returns the digest method.
|
|
|
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)
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
RSAOAEPParameterSpecwith the specified digest method.