SignatureVerifier can verify signatures on git commits and tags.
| Modifier and Type | Class and Description |
|---|---|
| public static record | SignatureVerifier.
A |
| public static enum | SignatureVerifier.
The owner's trust in a public key. |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
A |
| public String | |
| public SignatureVerifier. | Returns: aSignatureVerification describing the outcomethe repository, GpgConfig Repository the data comes from.the config, byte[] GpgConfigthe signature is for data, byte[] the ASCII-armored signature signatureData)Verifies a given signature for given data. |
| clear | back to summary |
|---|---|
| public void clear() A | |
| getName | back to summary |
|---|---|
| public String getName() Retrieves the name of this verifier. This should be a short string identifying the engine that verified the signature, like "gpg" if GPG is used, or "bc" for a BouncyCastle implementation. | |
| verify | back to summary |
|---|---|
| public SignatureVerifier. Verifies a given signature for given data.
| |
null if
unknown
null if unknown
null if unknown
null
SignatureVerification returns data about a (positively or
negatively) verified signature.
| Modifier and Type | Field and Description |
|---|---|
| private final Date | creationDate
Record Component accessed by creationDate(). date and time the signature was created |
| private final boolean | |
| private final String | keyFingerprint
Record Component accessed by keyFingerprint(). fingerprint of the public key, ornull if unknown
|
| private final String | |
| private final String | |
| private final String | |
| private final SignatureVerifier. | trustLevel
Record Component accessed by trustLevel(). the trust level of the public key used to verify the signature |
| private final boolean | verified
Record Component accessed by verified(). whether the signature verification was successful |
| private final String | verifierName
Record Component accessed by verifierName(). the name of the verifier that created this verification result |
| Access | Constructor and Description |
|---|---|
| public | SignatureVerification(String verifierName, Date creationDate, String signer, String keyFingerprint, String keyUser, boolean verified, boolean expired, SignatureVerifier.
|
| Modifier and Type | Method and Description |
|---|---|
| public Date | creationDate()
Record Component getter of creationDate.
Record Component date and time the signature was created |
| public final boolean | equals(Object
the reference object with which to compare. o)Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public boolean | |
| public final int | |
| public String | keyFingerprint()
Record Component getter of keyFingerprint.
Record Component
fingerprint of the public key, or |
| public String | |
| public String | |
| public String | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| public SignatureVerifier. | trustLevel()
Record Component getter of trustLevel.
Record Component the trust level of the public key used to verify the signature |
| public boolean | |
| public String | verifierName()
Record Component getter of verifierName.
Record Component the name of the verifier that created this verification result |
| creationDate | back to summary |
|---|---|
| private final Date creationDate Record Component accessed by creationDate(). date and time the signature was created | |
| expired | back to summary |
|---|---|
| private final boolean expired Record Component accessed by expired(). whether the public key used for this signature verification was expired when the signature was created | |
| keyFingerprint | back to summary |
|---|---|
| private final String keyFingerprint Record Component accessed by keyFingerprint(). fingerprint of the public key, or | |
| keyUser | back to summary |
|---|---|
| private final String keyUser Record Component accessed by keyUser(). user associated with the key, or | |
| message | back to summary |
|---|---|
| private final String message Record Component accessed by message(). human-readable message giving additional information about the
outcome of the verification, possibly | |
| signer | back to summary |
|---|---|
| private final String signer Record Component accessed by signer(). the signer as stored in the signature, or | |
| trustLevel | back to summary |
|---|---|
| private final SignatureVerifier. Record Component accessed by trustLevel(). the trust level of the public key used to verify the signature | |
| verified | back to summary |
|---|---|
| private final boolean verified Record Component accessed by verified(). whether the signature verification was successful | |
| verifierName | back to summary |
|---|---|
| private final String verifierName Record Component accessed by verifierName(). the name of the verifier that created this verification result | |
| SignatureVerification | back to summary |
|---|---|
| public SignatureVerification(String verifierName, Date creationDate, String signer, String keyFingerprint, String keyUser, boolean verified, boolean expired, SignatureVerifier. | |
| creationDate | back to summary |
|---|---|
| public Date creationDate() Record Component getter of creationDate.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| expired | back to summary |
|---|---|
| public boolean expired() Record Component getter of expired.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of
| |
| keyFingerprint | back to summary |
|---|---|
| public String keyFingerprint() Record Component getter of keyFingerprint.
| |
| keyUser | back to summary |
|---|---|
| public String keyUser() Record Component getter of keyUser.
| |
| message | back to summary |
|---|---|
| public String message() Record Component getter of message.
| |
| signer | back to summary |
|---|---|
| public String signer() Record Component getter of signer.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves.
| |
| trustLevel | back to summary |
|---|---|
| public SignatureVerifier. Record Component getter of trustLevel.
| |
| verified | back to summary |
|---|---|
| public boolean verified() Record Component getter of verified.
| |
| verifierName | back to summary |
|---|---|
| public String verifierName() Record Component getter of verifierName.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final SignatureVerifier. | |
| public static final SignatureVerifier. | |
| public static final SignatureVerifier. | |
| public static final SignatureVerifier. | |
| public static final SignatureVerifier. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SignatureVerifier. | |
| public static SignatureVerifier. |
| FULL | back to summary |
|---|---|
| public static final SignatureVerifier. | |
| MARGINAL | back to summary |
|---|---|
| public static final SignatureVerifier. | |
| NEVER | back to summary |
|---|---|
| public static final SignatureVerifier. | |
| ULTIMATE | back to summary |
|---|---|
| public static final SignatureVerifier. | |
| UNKNOWN | back to summary |
|---|---|
| public static final SignatureVerifier. | |
| TrustLevel | back to summary |
|---|---|
| private TrustLevel() | |
| valueOf | back to summary |
|---|---|
| public static SignatureVerifier. | |
| values | back to summary |
|---|---|
| public static SignatureVerifier. | |