net.suberic.crypto
Interface EncryptionKey

All Superinterfaces:
java.security.Key, java.io.Serializable

public interface EncryptionKey
extends java.security.Key

An extension to java.security.Key that knows about the EncryptionUtils that created it, as well as has some display info associated.


Field Summary
 
Fields inherited from interface java.security.Key
serialVersionUID
 
Method Summary
 java.lang.String[] getAssociatedAddresses()
          Returns the email address(es) associated with this key.
 java.lang.String getDisplayAlias()
          Returns the display information for this Key.
 EncryptionUtils getEncryptionUtils()
          Returns the EncryptionUtils that created this Key.
 java.lang.String getType()
          Returns the type (S/MIME, PGP) of this Key.
 
Methods inherited from interface java.security.Key
getAlgorithm, getEncoded, getFormat
 

Method Detail

getEncryptionUtils

public EncryptionUtils getEncryptionUtils()
                                   throws java.security.NoSuchProviderException
Returns the EncryptionUtils that created this Key.

Throws:
java.security.NoSuchProviderException

getType

public java.lang.String getType()
Returns the type (S/MIME, PGP) of this Key.


getDisplayAlias

public java.lang.String getDisplayAlias()
Returns the display information for this Key.


getAssociatedAddresses

public java.lang.String[] getAssociatedAddresses()
Returns the email address(es) associated with this key.