Package org.bouncycastle.cms
Class KeyAgreeRecipientId
- java.lang.Object
-
- org.bouncycastle.cms.RecipientId
-
- org.bouncycastle.cms.KeyAgreeRecipientId
-
- All Implemented Interfaces:
java.lang.Cloneable
,org.bouncycastle.util.Selector
- Direct Known Subclasses:
JceKeyAgreeRecipientId
public class KeyAgreeRecipientId extends RecipientId
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.cms.RecipientId
kek, keyAgree, keyTrans, password
-
-
Constructor Summary
Constructors Constructor Description KeyAgreeRecipientId(byte[] subjectKeyId)
Construct a key agree recipient ID with the value of a public key's subjectKeyId.KeyAgreeRecipientId(org.bouncycastle.asn1.x500.X500Name issuer, java.math.BigInteger serialNumber)
Construct a key agree recipient ID based on the issuer and serial number of the recipient's associated certificate.KeyAgreeRecipientId(org.bouncycastle.asn1.x500.X500Name issuer, java.math.BigInteger serialNumber, byte[] subjectKeyId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
boolean
equals(java.lang.Object o)
java.math.BigInteger
getSerialNumber()
byte[]
getSubjectKeyIdentifier()
int
hashCode()
boolean
match(java.lang.Object obj)
-
Methods inherited from class org.bouncycastle.cms.RecipientId
getType
-
-
-
-
Constructor Detail
-
KeyAgreeRecipientId
public KeyAgreeRecipientId(byte[] subjectKeyId)
Construct a key agree recipient ID with the value of a public key's subjectKeyId.- Parameters:
subjectKeyId
- a subjectKeyId
-
KeyAgreeRecipientId
public KeyAgreeRecipientId(org.bouncycastle.asn1.x500.X500Name issuer, java.math.BigInteger serialNumber)
Construct a key agree recipient ID based on the issuer and serial number of the recipient's associated certificate.- Parameters:
issuer
- the issuer of the recipient's associated certificate.serialNumber
- the serial number of the recipient's associated certificate.
-
KeyAgreeRecipientId
public KeyAgreeRecipientId(org.bouncycastle.asn1.x500.X500Name issuer, java.math.BigInteger serialNumber, byte[] subjectKeyId)
-
-
Method Detail
-
getSerialNumber
public java.math.BigInteger getSerialNumber()
-
getSubjectKeyIdentifier
public byte[] getSubjectKeyIdentifier()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
clone
public java.lang.Object clone()
- Specified by:
clone
in interfaceorg.bouncycastle.util.Selector
- Specified by:
clone
in classRecipientId
-
match
public boolean match(java.lang.Object obj)
-
-