com.mindbright.jca.security
Interface Key

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
DHPrivateKey, DHPublicKey, DSAPrivateKey, DSAPublicKey, PrivateKey, PublicKey, RSAPrivateCrtKey, RSAPrivateKey, RSAPublicKey, SecretKey
All Known Implementing Classes:
DHKey, DHPrivateKey, DHPublicKey, DSAKey, DSAPrivateKey, DSAPublicKey, RSAKey, RSAPrivateCrtKey, RSAPrivateKey, RSAPublicKey, SecretKeySpec, SSHRSAPublicKeyString

public interface Key
extends java.io.Serializable


Method Summary
 java.lang.String getAlgorithm()
          Get the algorithm name
 byte[] getEncoded()
          Get the key in its encoded form
 java.lang.String getFormat()
          Get the primary encoding format of this key.
 

Method Detail

getAlgorithm

java.lang.String getAlgorithm()
Get the algorithm name

Returns:
the name of the algorithm this key supports

getFormat

java.lang.String getFormat()
Get the primary encoding format of this key.

Returns:
the primary encoding format of the key

getEncoded

byte[] getEncoded()
Get the key in its encoded form

Returns:
the key in its encoded form