| Modifier and Type | Method and Description |
|---|---|
| public static SigningKeyDatabase | |
| public String | Returns: null if the database does not contain any information
about the given key; the principal if it does and all checks
passedRepository the key is being used inGpgConfig to usePublicKey to checkof the signature namespace, PersonIdent optional ident)PersonIdent giving a signer's e-mail address
and a signature timeChecks whether the given key is allowed to be used for signing, and if allowed returns the principal. |
| public boolean | Returns: true if the key has been revoked, false otherwiseRepository the key is being used inGpgConfig to usePublicKey to checkDetermines whether the gives key has been revoked. |
| public static SigningKeyDatabase | Returns: the previously setSigningKeyDatabaseto set; if database)null a default database using the OpenSSH
allowed signers file and the OpenSSH revocation list mechanism
is used.Sets the global |
| getInstance | back to summary |
|---|---|
| public static SigningKeyDatabase getInstance() Obtains the current global instance.
| |
| isAllowed | back to summary |
|---|---|
| public String isAllowed(Repository repository, GpgConfig config, PublicKey key, String namespace, PersonIdent ident) throws IOException, VerificationException Checks whether the given key is allowed to be used for signing, and if allowed returns the principal.
| |
| isRevoked | back to summary |
|---|---|
| public boolean isRevoked(Repository repository, GpgConfig config, PublicKey key) throws IOException Determines whether the gives key has been revoked.
| |
| setInstance | back to summary |
|---|---|
| public static SigningKeyDatabase setInstance(SigningKeyDatabase database) Sets the global
| |