Name

KeyException

Synopsis

Signals that something is wrong with a key. See also the subclasses InvalidKeyException and KeyManagementException.

java.security.KeyException

Figure 14-18. java.security.KeyException

public class KeyException extends GeneralSecurityException {
// Public Constructors
     public KeyException( );  
5.0  public KeyException(Throwable cause);  
     public KeyException(String msg);  
5.0  public KeyException(String message, Throwable cause);  
}

Subclasses

InvalidKeyException, KeyManagementException

Thrown By

java.security.Certificate.{decode( ), encode( )}, Signer.setKeyPair( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.