| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if a signing key is available, false
otherwisethe current repository, GpgConfig RepositoryGPG settings from the git config config, PersonIdent the signing identity (to help with key lookup in case signing
key is not specified) committer, String if non- signingKey, CredentialsProvider null overrides the signing key from the configprovider to use when querying for signing key credentials (eg.
passphrase) credentialsProvider)Indicates if a signing key is available for the specified committer and/or signing key. |
| public GpgSignature | Returns: the signature fordataRepository the signature is created inGPG settings from the git config config, byte[] the data to sign data, PersonIdent the signing identity (to help with key lookup in case signing
key is not specified) committer, String if non- signingKey, CredentialsProvider null overrides the signing key from the configprovider to use when querying for signing key credentials (eg.
passphrase) credentialsProvider)Signs arbitrary data. |
| public default void | signObject(Repository
Repository the object belongs toGPG settings from the git config config, ObjectBuilder the object to sign (must not be object, PersonIdent null and must be
complete to allow proper calculation of payload)the signing identity (to help with key lookup in case signing
key is not specified) committer, String if non- signingKey, CredentialsProvider null overrides the signing key from the configprovider to use when querying for signing key credentials (eg.
passphrase) credentialsProvider)Signs the specified object. |
| canLocateSigningKey | back to summary |
|---|---|
| public boolean canLocateSigningKey(Repository repository, GpgConfig config, PersonIdent committer, String signingKey, CredentialsProvider credentialsProvider) throws CanceledException Indicates if a signing key is available for the specified committer and/or signing key.
| |
| sign | back to summary |
|---|---|
| public GpgSignature sign(Repository repository, GpgConfig config, byte[] data, PersonIdent committer, String signingKey, CredentialsProvider credentialsProvider) throws CanceledException, IOException, UnsupportedSigningFormatException Signs arbitrary data.
| |
| signObject | back to summary |
|---|---|
| public default void signObject(Repository repository, GpgConfig config, ObjectBuilder object, PersonIdent committer, String signingKey, CredentialsProvider credentialsProvider) throws CanceledException, IOException, UnsupportedSigningFormatException Signs the specified object.
Implementors should obtain the payload for signing from the specified
object via
Any existing signature on the object must be discarded prior obtaining
the payload via
| |