public interface KeyIdentifier
extends iaik.asn1.ASN1Type
Modifier and Type | Field and Description |
---|---|
static int |
ISSUER_AND_SERIALNUMBER
The CMS key (certificate) identifier type IssuerAndSerialNumber.
|
static int |
KEK_IDENTIFIER
The CMS key identifier type KEKIdentifier.
|
static int |
ORIGINATOR_PUBLIC_KEY
The CMS key identifier type OriginatorPublicKey.
|
static int |
RECIPIENT_KEY_IDENTIFIER
The CMS key (certificate) identifier type RecipientKeyIdentifier
The
RecipientKeyIdentifier
type is used for identifying a recipient in a KeyAgreeRecipientInfo . |
static int |
SUBJECT_KEY_IDENTIFIER
The CMS key (certificate) identifier type SubjectKeyIdentifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Compares this
KeyIdentifier to the specified object. |
int |
getKeyIdType()
Returns the type of the key identifier.
|
java.lang.String |
getKeyIdTypeName()
Returns the type of the key identifier as string.
|
int |
hashCode()
Returns a hashcode for this
KeyIdentifier . |
java.lang.String |
toString()
Returns a string giving some information about this
KeyIdentifier object. |
static final int ISSUER_AND_SERIALNUMBER
The IssuerAndSerialNumber
type may be used for identifying a signer in a SignerInfo
, a recipient in a KeyTransRecipientInfo
or KeyAgreeRecipientInfo
, or the originator in a KeyAgreeRecipientInfo
.
static final int SUBJECT_KEY_IDENTIFIER
The SubjectKeyIdentifier
type may be used for identifying a signer in a SignerInfo
, a recipient in a KeyTransRecipientInfo
, or the originator in a KeyAgreeRecipientInfo
.
static final int RECIPIENT_KEY_IDENTIFIER
The RecipientKeyIdentifier
type is used for identifying a recipient in a KeyAgreeRecipientInfo
.
static final int KEK_IDENTIFIER
The KEKIdentifier
type is used for identifying a recipient in a KEKRecipientInfo
.
static final int ORIGINATOR_PUBLIC_KEY
The OriginatorPublicKey
type may be used for identifying the originator in a KeyAgreeRecipientInfo
.
int getKeyIdType()
ISSUER_AND_SERIALNUMBER
(0) or
SUBJECT_KEY_IDENTIFIER
(1) or
RECIPIENT_KEY_IDENTIFIER
(2) or
KEK_IDENTIFIER
(3) or
ORIGINATOR_PUBLIC_KEY
(4)java.lang.String getKeyIdTypeName()
"IssuerAndSerialNumber"
(0) or
"SubjectKeyIdentifier"
(1) or
"RecipientKeyIdentifier"
(2) or
"KEKIdentifier"
(3)
"OriginatorPublicKey"
(4)boolean equals(java.lang.Object other)
KeyIdentifier
to the specified object.equals
in class java.lang.Object
other
- the object to compare this KeyIdentifier
against.true
, if the given object is equal to this
KeyIdentifier
,
false
otherwiseint hashCode()
KeyIdentifier
.hashCode
in class java.lang.Object
KeyIdentifier
java.lang.String toString()
KeyIdentifier
object.toString
in class java.lang.Object