Top Description Methods
org.bouncycastle.crypto

public Interface AsymmetricKey

extends Key
Known Direct Subinterfaces
org.bouncycastle.crypto.AsymmetricPrivateKey, org.bouncycastle.crypto.AsymmetricPublicKey
Known Direct Implementers
org.bouncycastle.crypto.asymmetric.AsymmetricXDHKey, org.bouncycastle.crypto.asymmetric.AsymmetricDHKey, org.bouncycastle.crypto.asymmetric.AsymmetricDSAKey, org.bouncycastle.crypto.asymmetric.AsymmetricDSTU4145Key, org.bouncycastle.crypto.asymmetric.AsymmetricECKey, org.bouncycastle.crypto.asymmetric.AsymmetricEdDSAKey, org.bouncycastle.crypto.asymmetric.AsymmetricGOST3410Key, org.bouncycastle.crypto.asymmetric.AsymmetricRSAKey

Base interface for Public/Private keys.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.
getEncoded
()

Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.

Inherited from org.bouncycastle.crypto.Key:
equalsgetAlgorithmhashCode

Method Detail

getEncodedback to summary
public byte[] getEncoded()

Return an ASN.1 encoding of the key wrapped in a PrivateKeyInfo or a SubjectPublicKeyInfo structure.

Returns:byte[]

an encoding of a PrivateKeyInfo or a SubjectPublicKeyInfo structure.