Node:The IKeyPairCodec Interface, Next:Keypair Generation Example, Previous:The KeyPairGeneratorFactory Class, Up:Keypairs
A key pair codec is used to externalize and de-externalize the key pairs used in GNU Crypto. There is no factory class, but rather the implementations have public, zero-argument constructors. The available codecs are:
gnu.crypto.key.dh.DHKeyPairRawCodec, for encoding and decoding
Diffie-Hellman key pairs.
gnu.crypto.key.dss.DSSKeyPairRawCodec, for encoding and decoding
DSS key pairs.
gnu.crypto.key.rsa.RSAKeyPairRawCodec, for encoding and decoding
RSA key pairs.
gnu.crypto.key.srp6.SRPKeyPairRawCodec, for encoding and decoding
SRP key pairs.
java.security.PrivateKey. This
function will throw a java.lang.IllegalArgumentException if the
encoded bytes cannot be decoded or are incorrect.
java.security.PublicKey. This
function will throw a java.lang.IllegalArgumentException if the
encoded bytes cannot be decoded or are incorrect.
java.lang.IllegalArgumentException if the key cannot be encoded
by this instance.
java.lang.IllegalArgumentException if the key cannot be encoded
by this instance.
RAW_FORMAT.