public static class JarSignatureValidator.JarSignatureStatus extends Object
This class provides fine-grained access to validation results through boolean query methods, allowing callers to understand exactly what was checked and what failed.
isValid(), isSigned()isFullyVerified(), isOfflineOnly()isOnline(), isCommunicationFailure()isCertificateExpired(), isCertificateRevoked(), etc.isSignatureValid()isIoFailure()| Modifier and Type | Method and Description |
|---|---|
List<JarSignatureValidator.CertificateInfo> |
getCertificates()
Returns detailed information about all signing certificates.
|
List<String> |
getErrors()
Returns all error messages generated during validation.
|
String |
getIoFailureMessage()
Returns the I/O failure message if an I/O failure occurred.
|
String |
getMessage()
Returns a human-readable summary message describing the validation result.
|
List<String> |
getWarnings()
Returns all warning messages generated during validation.
|
boolean |
isCertificateExpired()
Returns whether any signing certificate has expired.
|
boolean |
isCertificateNotYetValid()
Returns whether any signing certificate is not yet valid.
|
boolean |
isCertificateRevoked()
Returns whether any signing certificate has been revoked.
|
boolean |
isCertificateSelfSigned()
Returns whether any signing certificate is self-signed.
|
boolean |
isCertificatesValid()
Returns whether all certificates are currently valid.
|
boolean |
isCommunicationFailure()
Returns whether communication failures occurred during online checking.
|
boolean |
isFullyVerified()
Returns whether full JAR verification was performed.
|
boolean |
isIoFailure()
Returns whether an I/O failure occurred reading the JAR file.
|
boolean |
isOfflineOnly()
Returns whether only offline checks were performed.
|
boolean |
isOnline()
Returns whether the internet/OCSP/CRL servers were reachable.
|
boolean |
isOnlineCheckAttempted()
Returns whether online checking was attempted.
|
boolean |
isOnlineReachable()
Returns whether the internet/OCSP/CRL servers were reachable.
|
boolean |
isSignatureIntegrityValid()
Returns whether the JAR signature integrity is valid.
|
boolean |
isSignatureValid()
Returns whether the JAR signature integrity is valid.
|
boolean |
isSigned()
Returns whether the JAR file is signed.
|
boolean |
isValid()
Returns whether the JAR signature validation passed.
|
String |
toString()
Returns a detailed string representation of the validation result.
|
public boolean isValid()
true if validation passed, false otherwise.public boolean isSigned()
true if the JAR contains signatures, false otherwise.public String getMessage()
public boolean isFullyVerified()
true if full verification was performed.public boolean isOfflineOnly()
true if only offline checks were performed.public boolean isOnlineCheckAttempted()
true if online revocation checking was attempted.public boolean isOnline()
true if online services were reachable.public boolean isOnlineReachable()
true if online services were reachable.public boolean isCommunicationFailure()
true if communication failures occurred.public boolean isIoFailure()
true if an I/O failure occurred.public String getIoFailureMessage()
null if no I/O failure.public boolean isSignatureValid()
true if signature integrity is valid.public boolean isSignatureIntegrityValid()
true if signature integrity is valid.public boolean isCertificateExpired()
true if any certificate has expired.public boolean isCertificateNotYetValid()
true if any certificate is not yet valid.public boolean isCertificateRevoked()
true if any certificate has been revoked.public boolean isCertificateSelfSigned()
true if any certificate is self-signed.public boolean isCertificatesValid()
true if all certificates are valid.public List<JarSignatureValidator.CertificateInfo> getCertificates()
JarSignatureValidator.CertificateInfo objects.public List<String> getWarnings()
public List<String> getErrors()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© 2026 Mindus SARL. All rights reserved.