public class KeyAgreementPOP extends ProofOfPossession
ProofOfPossession.SubsequentMsg, ProofOfPossession.Type
Constructor and Description |
---|
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). |
Modifier and Type | Method and Description |
---|---|
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() |
inputInstance, length, output
public KeyAgreementPOP(EncryptedValue encryptedKey)
KeyAgreementPOP
where
proof-of-possession is achieved in this message by
including the encrypted private key.public KeyAgreementPOP(ProofOfPossession.SubsequentMsg subsequentMsg)
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).public KeyAgreementPOP(byte[] dhMAC)
KeyAgreementPOP
where
proof-of-possession is achieved in this message by
including a DH-MAC of the cert request using the private key.public KeyAgreementPOP(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public ProofOfPossession.Type getType()
ProofOfPossession
ProofOfPossession.Type
.getType
in class ProofOfPossession
public EncryptedValue getEncryptedKey()
null
.public ProofOfPossession.SubsequentMsg getSubsequentMsgType()
null
.public byte[] getDHMac()
public java.lang.String toString()
toString
in class java.lang.Object
public void input(java.io.InputStream is) throws java.io.IOException
java.io.IOException