Skip navigation links

Oracle Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10666-05


oracle.security.crypto.cmp
Class KeyAgreementPOP

java.lang.Object
  extended by oracle.security.crypto.cmp.ProofOfPossession
      extended by oracle.security.crypto.cmp.KeyAgreementPOP

All Implemented Interfaces:
oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class KeyAgreementPOP
extends ProofOfPossession

CRMF proof-of-possession value for key agreement keys.


Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.security.crypto.cmp.ProofOfPossession
ProofOfPossession.SubsequentMsg, ProofOfPossession.Type

 

Constructor Summary
KeyAgreementPOP(byte[] dhMAC)
          Create a new KeyAgreementPOP where proof-of-possession is achieved in this message by including a DH-MAC of the cert request using the private key.
KeyAgreementPOP(EncryptedValue encryptedKey)
          Create a new KeyAgreementPOP where proof-of-possession is achieved in this message by including the encrypted private key.
KeyAgreementPOP(java.io.InputStream is)
           
KeyAgreementPOP(ProofOfPossession.SubsequentMsg subsequentMsg)
          Create a new KeyAgreementPOP where proof-of-possession will be achieved in a subsequent message, either indirectly (via an encrypted certificate) or directely (via a challenge-response exchange).

 

Method Summary
 byte[] getDHMac()
           
 EncryptedValue getEncryptedKey()
          If proof of possession is contained in this message, the value of such proof is returned, consisting of the private key, encrypted for the CA.
 ProofOfPossession.SubsequentMsg getSubsequentMsgType()
          If proof of possession is to be given in a subsequent message, the type of such proof is returned.
 ProofOfPossession.Type getType()
          Returns one of the values defined in ProofOfPossession.Type.
 void input(java.io.InputStream is)
           
 java.lang.String toString()
           

 

Methods inherited from class oracle.security.crypto.cmp.ProofOfPossession
inputInstance, length, output

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

KeyAgreementPOP

public KeyAgreementPOP(EncryptedValue encryptedKey)
Create a new KeyAgreementPOP where proof-of-possession is achieved in this message by including the encrypted private key.

KeyAgreementPOP

public KeyAgreementPOP(ProofOfPossession.SubsequentMsg subsequentMsg)
Create a new KeyAgreementPOP where proof-of-possession will be achieved in a subsequent message, either indirectly (via an encrypted certificate) or directely (via a challenge-response exchange).
See Also:
ProofOfPossession.SubsequentMsg.ENCR_CERT, ProofOfPossession.SubsequentMsg.CHALLENGE_RESP

KeyAgreementPOP

public KeyAgreementPOP(byte[] dhMAC)
Create a new KeyAgreementPOP where proof-of-possession is achieved in this message by including a DH-MAC of the cert request using the private key.

KeyAgreementPOP

public KeyAgreementPOP(java.io.InputStream is)
                throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getType

public ProofOfPossession.Type getType()
Description copied from class: ProofOfPossession
Returns one of the values defined in ProofOfPossession.Type.
Specified by:
getType in class ProofOfPossession

getEncryptedKey

public EncryptedValue getEncryptedKey()
If proof of possession is contained in this message, the value of such proof is returned, consisting of the private key, encrypted for the CA. Otherwise returns null.

getSubsequentMsgType

public ProofOfPossession.SubsequentMsg getSubsequentMsgType()
If proof of possession is to be given in a subsequent message, the type of such proof is returned. Otherwise returns null.

getDHMac

public byte[] getDHMac()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Throws:
java.io.IOException

Skip navigation links

Oracle Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10666-05


Copyright © 2005, 2013, Oracle. All rights reserved.