java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.jgit.signing.ssh.VerificationException
- All Implemented Interfaces:
Serializable
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVerificationException(boolean expired, String reason) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the check failure reason.booleanTells whether the check failed because the public key was expired.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VerificationException
Creates a new instance.- Parameters:
expired- whether the checked public key or certificate was expiredreason- describing the check failure
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
isExpired
public boolean isExpired()Tells whether the check failed because the public key was expired.- Returns:
trueif the check failed because the public key was expired,falseotherwise
-
getReason
Retrieves the check failure reason.- Returns:
- the reason description
-