|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object iaik.cms.OriginatorPublicKey
public class OriginatorPublicKey
The CMS type OriginatorPublicKey.
The OriginatorPublicKey type is used as one alternative for identifying the public
key of the originator within a KeyAgreeRecipientInfo
(see RFC 5652):
OriginatorPublicKey ::= SEQUENCE { algorithm AlgorithmIdentifier publicKey BIT STRING }
Field Summary |
---|
Fields inherited from interface iaik.cms.KeyIdentifier |
---|
ISSUER_AND_SERIALNUMBER, KEK_IDENTIFIER, ORIGINATOR_PUBLIC_KEY, RECIPIENT_KEY_IDENTIFIER, SUBJECT_KEY_IDENTIFIER |
Constructor Summary | |
---|---|
OriginatorPublicKey()
Empty default constructor. |
|
OriginatorPublicKey(ASN1Object obj)
Creates an OriginatorPublicKey from an ASN1Object. |
|
OriginatorPublicKey(ASN1Object obj,
SecurityProvider securityProvider)
Creates an OriginatorPublicKey from an ASN1Object. |
|
OriginatorPublicKey(java.security.PublicKey publicKey)
Creates a OriginatorPublicKey for the given public key. |
Method Summary | |
---|---|
void |
decode(ASN1Object obj)
Decodes the OriginatorPublicKey from the given ASN1Object. |
boolean |
equals(java.lang.Object obj)
Compares this OriginatorPublicKey to the specified object. |
int |
getKeyIdType()
Returns the key identifier type this class represents. |
java.lang.String |
getKeyIdTypeName()
Returns the key identifier type this class represents as string. |
java.security.PublicKey |
getPublicKey()
Gets the public key. |
int |
hashCode()
Returns a hashcode for this OriginatorPublicKey . |
ASN1Object |
toASN1Object()
Returns this OriginatorPublicKey as ASN1Object. |
java.lang.String |
toString()
Returns a String representation of this OriginatorPublicKey. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OriginatorPublicKey()
Used for dynamic object creation only. Shall be not used by an application.
public OriginatorPublicKey(java.security.PublicKey publicKey)
publicKey
- the public keypublic OriginatorPublicKey(ASN1Object obj) throws CodingException
obj
- the OriginatorPublicKey as ASN1Object
CodingException
- if the ASN1Object cannot be decoded or
is invalid structuredpublic OriginatorPublicKey(ASN1Object obj, SecurityProvider securityProvider) throws CodingException
obj
- the OriginatorPublicKey as ASN1ObjectsecurityProvider
- the SecurityProvider to be used by this object, if null
use the
default system-wide installed SecurityProvider; SecurityProvider method
getKeyFactory
may be required to get a KeyFactory required for parsing the encoded key
CodingException
- if the ASN1Object cannot be decoded or
is invalid structuredMethod Detail |
---|
public java.security.PublicKey getPublicKey()
public void decode(ASN1Object obj) throws CodingException
decode
in interface ASN1Type
obj
- the OriginatorPublicKey as ASN1Object
CodingException
- if the ASN1Object cannot be decoded or
is invalid structuredpublic ASN1Object toASN1Object() throws CodingException
toASN1Object
in interface ASN1Type
CodingException
- if this OriginatorPublicKey cannot be represented
as ASN.1 objectpublic boolean equals(java.lang.Object obj)
OriginatorPublicKey
to the specified object.
equals
in interface KeyIdentifier
equals
in class java.lang.Object
obj
- the object to compare this OriginatorPublicKey
against.
true
, if the given object is equal to this
OriginatorPublicKey
,
false
otherwisepublic int hashCode()
OriginatorPublicKey
.
hashCode
in interface KeyIdentifier
hashCode
in class java.lang.Object
OriginatorPublicKey
public int getKeyIdType()
getKeyIdType
in interface KeyIdentifier
public java.lang.String getKeyIdTypeName()
getKeyIdTypeName
in interface KeyIdentifier
public java.lang.String toString()
toString
in interface KeyIdentifier
toString
in class java.lang.Object
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |