Class KeyException

All Implemented Interfaces:

public class KeyException
extends CryptoException

This exception is thrown when there is a problem with a key object. This hapens if a key can't be found, a key is too short for a particular purpose, a public key is used where a private key is expected, etc.

Logi Ragnarsson (
See Also:
Serialized Form

Constructor Summary
          Create a new KeyException with no message.
KeyException(java.lang.String msg)
          Create a new KeyException with the message msg.
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail


public KeyException()
Create a new KeyException with no message.


public KeyException(java.lang.String msg)
Create a new KeyException with the message msg.

Copyright (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL