All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class is.logi.crypto.keys.SymmetricKey

java.lang.Object
   |
   +----is.logi.crypto.Crypto
           |
           +----is.logi.crypto.keys.K
                   |
                   +----is.logi.crypto.keys.SymmetricKey

public abstract class SymmetricKey
extends K
This class is the ancestor of all symmetric keys classes.

Author:
Logi Ragnarsson (logir@hi.is)
See Also:
KeyPair, KeyRing

Constructor Index

 o SymmetricKey()

Method Index

 o isPrivate()
Returns true iff this is a private key.
 o matches(Key)
Returns true if this and key are the same symmetric key.

Constructors

 o SymmetricKey
 public SymmetricKey()

Methods

 o isPrivate
 public boolean isPrivate()
Returns true iff this is a private key.

Symmetric keys simply return true.

Overrides:
isPrivate in class K
 o matches
 public boolean matches(Key key)
Returns true if this and key are the same symmetric key.

Symmetric keys simply call equals(key).

Overrides:
matches in class K

All Packages  Class Hierarchy  This Package  Previous  Next  Index