|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.core.AlgorithmIdentifier
oracle.security.crypto.core.OAEPAlgorithmIdentifier
public class OAEPAlgorithmIdentifier
This class provides an API for encapsulating the parameters of an RSAES-OAEP AlgorithmIdentifier
and making them easily accessible.
Note: The definition and ASN.1 structure for the OAEP (Optimal Asymmetric Encryption Padding) AlgorithmIdentifier can be found in PKCS#1 version 2.0.
RSApkcs1
, Serialized FormConstructor Summary | |
---|---|
OAEPAlgorithmIdentifier() Creates a new OAEPAlgorithmIdentifier with the params: |
|
OAEPAlgorithmIdentifier(AlgorithmIdentifier hashFunc, AlgorithmIdentifier maskGenFunc, AlgorithmIdentifier pSourceFunc) Instantiates a new OAEPAlgorithmIdentifier by encoding the given params. |
|
OAEPAlgorithmIdentifier(ASN1Object params) Instantiates a new OAEPAlgorithmIdentifier by decoding the given params. |
|
OAEPAlgorithmIdentifier(java.io.InputStream in) Instantiate a new OAEPAlgorithmIdentifier by reading in the AlgorithmIdentifier from the stream and decoring the resulting parameters. |
|
OAEPAlgorithmIdentifier(java.lang.String digest, byte[] source) |
Method Summary | |
---|---|
java.lang.Object |
clone() Creates a deep copy of this OAEPAlgorithmIdentifier object. |
AlgorithmIdentifier |
getHashFunc() Returns a clone of the hash function AlgorithmIdentifier held by this AlgorithmIdentifier . |
AlgorithmIdentifier |
getMaskGenFunc() Returns a clone of the mask generation function AlgorithmIdentifier held by this AlgorithmIdentifier . |
AlgorithmIdentifier |
getPSourceFunc() Returns the p source function AlgorithmIdentifier held by this AlgorithmIdentifier . |
void |
input(java.io.InputStream in) Reads in the ASN1 representation from the stream and attempts to decode the parameters. |
Methods inherited from class oracle.security.crypto.core.AlgorithmIdentifier |
---|
equals, getOID, getParameters, hashCode, length, output, readExternal, toString, writeExternal |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OAEPAlgorithmIdentifier(ASN1Object params) throws AlgorithmIdentifierException
params
- are the parameters to be held and decoded for this AlgorithmIdentifier
AlgorithmIdentifierException
- is thrown if there is a problem decoding the parameters.public OAEPAlgorithmIdentifier()
hash function | SHA1 |
mask generation function | MGF1 with SHA1 |
p source function | pSpecifiedEmptyIdentifier |
public OAEPAlgorithmIdentifier(AlgorithmIdentifier hashFunc, AlgorithmIdentifier maskGenFunc, AlgorithmIdentifier pSourceFunc)
hashFunc
- is the AlgorithmIdentifier
of the hash function detailed in the RSAES-OAEP-params ASN1 definition.maskGenFunc
- is the AlgorithmIdentifier
of the mask generation function detailed in the RSAES-OAEP-param ASN1 definition.pSourceFunc
- is the AlgorithmIdentifier
that indicates the source function to use to generate p.public OAEPAlgorithmIdentifier(java.lang.String digest, byte[] source)
public OAEPAlgorithmIdentifier(java.io.InputStream in) throws java.io.IOException
AlgorithmIdentifier
from the stream and decoring the resulting parameters.
in
- is the InputStream
we will read the AlgorithmIdentifier
from.java.io.IOException
- is thrown if there is a problem reading the AlgorithmIdentifier
in from the stream or if there is a problem decoding the parameters.Method Detail |
---|
public AlgorithmIdentifier getHashFunc()
AlgorithmIdentifier
held by this AlgorithmIdentifier
.AlgorithmIdentifier
held by this AlgorithmIdentifier
.public AlgorithmIdentifier getMaskGenFunc()
AlgorithmIdentifier
held by this AlgorithmIdentifier
.AlgorithmIdentifier
held by this AlgorithmIdentifier
.public AlgorithmIdentifier getPSourceFunc()
AlgorithmIdentifier
held by this AlgorithmIdentifier
.AlgorithmIdentifier
.public void input(java.io.InputStream in) throws java.io.IOException
input
in interface Streamable
input
in class AlgorithmIdentifier
in
- is the InputStream
we will read the AlgorithmIdentifier
from.java.io.IOException
- is thrown if there is a problem reading the AlgorithmIdentifier
in from the stream or decoding the parameters.public java.lang.Object clone()
OAEPAlgorithmIdentifier
object.clone
in class AlgorithmIdentifier
|
Oracle Fusion Middleware Crypto FIPS Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10696-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |