|
Oracle Security Developer Tools PKI SDK CMP Java API Reference 10g (10.1.4.0.1) B28166-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cmp.Challenge
A proof-of-possession challenge for an individual private key.
POPChallenge
Constructor Summary | |
Challenge() Create a new, empty Challenge . |
|
Challenge(oracle.security.crypto.core.AlgorithmIdentifier digestAlg, java.math.BigInteger randomInt, oracle.security.crypto.cert.GeneralName sender, oracle.security.crypto.core.PublicKey pubKey) Create a new Challenge instance using the given digest algorithm, challenge random integer and sender's name, and encrypts the challenge using the given public key. |
|
Challenge(byte[] witness, java.math.BigInteger randomInt, oracle.security.crypto.cert.GeneralName sender, oracle.security.crypto.core.PublicKey pubKey) Create a new Challenge instance using the given witness digest bytes, challenge random integer and sender's name, and encrypts the challenge using the given public key. |
|
Challenge(java.io.InputStream is) |
Method Summary | |
oracle.security.crypto.core.AlgorithmIdentifier |
getDigestAlgID() |
java.math.BigInteger |
getRandomInt(oracle.security.crypto.core.PrivateKey privKey) |
oracle.security.crypto.cert.GeneralName |
getSender(oracle.security.crypto.core.PrivateKey privKey) |
byte[] |
getWitness() |
void |
input(java.io.InputStream is) |
int |
length() |
void |
output(java.io.OutputStream os) |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Challenge()
Challenge
.public Challenge(oracle.security.crypto.core.AlgorithmIdentifier digestAlg, java.math.BigInteger randomInt, oracle.security.crypto.cert.GeneralName sender, oracle.security.crypto.core.PublicKey pubKey) throws oracle.security.crypto.core.AlgorithmIdentifierException, oracle.security.crypto.core.InvalidKeyException, oracle.security.crypto.core.CipherException
Challenge
instance using the given digest algorithm, challenge random integer and sender's name, and encrypts the challenge using the given public key.digestAlg
- The digest algorithm used to produce the witness digest bytes.randomInt
- The random integer that will be encrypted to form the challenge (with the sender's name).sender
- The sender's name that will be encrypted to form the challenge (with the random integer).pubKey
- The public key of the recipient, which will be used to encrypt the challenge.public Challenge(byte[] witness, java.math.BigInteger randomInt, oracle.security.crypto.cert.GeneralName sender, oracle.security.crypto.core.PublicKey pubKey) throws oracle.security.crypto.core.AlgorithmIdentifierException, oracle.security.crypto.core.InvalidKeyException, oracle.security.crypto.core.CipherException
Challenge
instance using the given witness digest bytes, challenge random integer and sender's name, and encrypts the challenge using the given public key. The digest algorithm will be left null
, in keeping with the CMP protocol.witness
- The digest of the challenge random integer's bytes.randomInt
- The random integer that will be encrypted to form the challenge (with the sender's name).sender
- The sender's name that will be encrypted to form the challenge (with the random integer).pubKey
- The public key of the recipient, which will be used to encrypt the challenge.public Challenge(java.io.InputStream is) throws java.io.IOException
Method Detail |
public oracle.security.crypto.core.AlgorithmIdentifier getDigestAlgID()
public byte[] getWitness()
public java.math.BigInteger getRandomInt(oracle.security.crypto.core.PrivateKey privKey) throws oracle.security.crypto.core.CipherException
oracle.security.crypto.core.CipherException
public oracle.security.crypto.cert.GeneralName getSender(oracle.security.crypto.core.PrivateKey privKey) throws oracle.security.crypto.core.CipherException
oracle.security.crypto.core.CipherException
public java.lang.String toString()
public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public int length()
length
in interface oracle.security.crypto.util.Streamable
|
Oracle Security Developer Tools PKI SDK CMP Java API Reference 10g (10.1.4.0.1) B28166-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |