|
Oracle Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10666-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cmp.Challenge
public class 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, java.security.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, java.security.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(java.security.PrivateKey privKey) Note the changes in the method signature |
oracle.security.crypto.cert.GeneralName |
getSender(java.security.PrivateKey privKey) Note the changes in the method signature |
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, java.security.PublicKey pubKey) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, javax.crypto.NoSuchPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
Challenge
instance using the given digest algorithm, challenge random integer and sender's name, and encrypts the challenge using the given public key.
Note the changes in the method signature
Previously public Challenge (AlgorithmIdentifier , BigInteger , GeneralName , oracle.security.crypto.core.PublicKey)
Nowpublic Challenge (AlgorithmIdentifier , BigInteger , GeneralName , java.security.PublicKey)
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown -- AlgorithmIdentifierException,CipherException
Exceptions introduced -- java.security.InvalidKeyException ,NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException,BadPaddingException
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.java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
javax.crypto.NoSuchPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
public Challenge(byte[] witness, java.math.BigInteger randomInt, oracle.security.crypto.cert.GeneralName sender, java.security.PublicKey pubKey) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, javax.crypto.NoSuchPaddingException, java.security.InvalidKeyException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
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.
Note the changes in the method signature
Previously public Challenge (byte[] , BigInteger , GeneralName , oracle.security.crypto.core.PublicKey)
Nowpublic Challenge (byte[] , BigInteger , GeneralName , java.security.PublicKey)
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown -- AlgorithmIdentifierException,CipherException
Exceptions introduced -- java.security.InvalidKeyException ,NoSuchAlgorithmException, NoSuchPaddingException, IllegalBlockSizeException,BadPaddingException
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.java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
javax.crypto.NoSuchPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
public Challenge(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public oracle.security.crypto.core.AlgorithmIdentifier getDigestAlgID()
public byte[] getWitness()
public java.math.BigInteger getRandomInt(java.security.PrivateKey privKey) throws javax.crypto.NoSuchPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
Note the changes in the method signature
Previously public BigInteger getRandomInt (oracle.security.crypto.core.PrivateKey )
Now public BigInteger getRandomInt (java.security.PrivateKey )
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown --CipherException
Exceptions introduced -- NoSuchPaddingException, IllegalBlockSizeException,BadPaddingException
javax.crypto.NoSuchPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
public oracle.security.crypto.cert.GeneralName getSender(java.security.PrivateKey privKey) throws javax.crypto.NoSuchPaddingException, javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
Note the changes in the method signature
Previously public GeneralName getSender (oracle.security.crypto.core.PrivateKey )
Now public GeneralName getSender (java.security.PrivateKey )
Note the change in the exceptions declared to be thrown.
Exceptions no longer thrown --CipherException
Exceptions introduced -- NoSuchPaddingException, IllegalBlockSizeException,BadPaddingException
javax.crypto.NoSuchPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
public java.lang.String toString()
toString
in class java.lang.Object
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 Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10666-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |