Top Description Fields Constructors Methods
org.eclipse.jgit.signing.ssh

public Class VerificationException

extends Exception
Class Inheritance

An exception giving details about a failed SigningKeyDatabase#isAllowed(org.eclipse.jgit.lib.Repository, org.eclipse.jgit.lib.GpgConfig, java.security.PublicKey, String, org.eclipse.jgit.lib.PersonIdent) validation.
Since
7.1

Field Summary

Modifier and TypeField and Description
private final boolean
private final String
private static final long

Constructor Summary

AccessConstructor and Description
public
VerificationException(boolean
whether the checked public key or certificate was expired
expired
,
String
describing the check failure
reason
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public String
getMessage()

Overrides java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

public String

Returns:

the reason description
getReason
()

Retrieves the check failure reason.

public boolean

Returns:

true if the check failed because the public key was expired, false otherwise
isExpired
()

Tells whether the check failed because the public key was expired.

Field Detail

expiredback to summary
private final boolean expired
reasonback to summary
private final String reason
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

VerificationExceptionback to summary
public VerificationException(boolean expired, String reason)

Creates a new instance.

Parameters
expired:boolean

whether the checked public key or certificate was expired

reason:String

describing the check failure

Method Detail

getMessageback to summary
public String getMessage()

Overrides java.lang.Throwable.getMessage.

Doc from java.lang.Throwable.getMessage.

Returns the detail message string of this throwable.

Returns:String

the detail message string of this Throwable instance (which may be null).

Annotations
@Override
getReasonback to summary
public String getReason()

Retrieves the check failure reason.

Returns:String

the reason description

isExpiredback to summary
public boolean isExpired()

Tells whether the check failed because the public key was expired.

Returns:boolean

true if the check failed because the public key was expired, false otherwise