Signer to create SSH signatures.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final int | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static GpgSignature | |
| public boolean | canLocateSigningKey(Repository
the 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)Implements org. Indicates if a signing key is available for the specified committer and/or signing key. |
| private static String | |
| private static PublicKey | |
| private static PublicKeyIdentity | |
| private static File | |
| private static KeyPair | |
| public GpgSignature | sign(Repository
Repository 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)Implements org. Signs arbitrary data. |
| private static String |
| GIT_KEY_PREFIX | back to summary |
|---|---|
| private static final String GIT_KEY_PREFIX | |
| LINE_LENGTH | back to summary |
|---|---|
| private static final int LINE_LENGTH | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| SshSigner | back to summary |
|---|---|
| public SshSigner() | |
| armor | back to summary |
|---|---|
| private static GpgSignature armor(byte[] data) throws IOException | |
| canLocateSigningKey | back to summary |
|---|---|
| public boolean canLocateSigningKey(Repository repository, GpgConfig config, PersonIdent committer, String signingKey, CredentialsProvider credentialsProvider) throws CanceledException Implements org. Doc from org. Indicates if a signing key is available for the specified committer and/or signing key.
| |
| defaultKeyCommand | back to summary |
|---|---|
| private static String defaultKeyCommand(Repository repository, GpgConfig config) throws IOException | |
| fromEntry | back to summary |
|---|---|
| private static PublicKey fromEntry(List<AuthorizedKeyEntry> entries) throws GeneralSecurityException, IOException | |
| getIdentity | back to summary |
|---|---|
| private static PublicKeyIdentity getIdentity(String signingKey, PersonIdent committer, CredentialsProvider credentials) throws CanceledException, GeneralSecurityException, IOException | |
| getPrivateKeyFile | back to summary |
|---|---|
| private static File getPrivateKeyFile(File directory, String publicKeyName) | |
| loadPrivateKey | back to summary |
|---|---|
| private static KeyPair loadPrivateKey(Path path, CredentialsProvider credentials) throws CanceledException, GeneralSecurityException, IOException | |
| sign | back to summary |
|---|---|
| public GpgSignature sign(Repository repository, GpgConfig config, byte[] data, PersonIdent committer, String signingKey, CredentialsProvider credentialsProvider) throws CanceledException, IOException, UnsupportedSigningFormatException Implements org. Doc from org. Signs arbitrary data.
| |
| toString | back to summary |
|---|---|
| private static String toString(TemporaryBuffer b) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Map. | sign(SessionContext
The session, String SessionContext for calling this method - may be null if not called within a
session contextRecommended signature algorithm - if algo, byte[] null/empty then one will be selected based on the
key type and/or signature factoriesNote even if specific algorithm specified, the implementation may disregard and choose another Data to sign data)Overrides org. Implements org. Proves the public key identity by signing the given data |
| AgentIdentity | back to summary |
|---|---|
| pack-priv AgentIdentity(PublicKey publicKey) | |
| sign | back to summary |
|---|---|
| public Map. Overrides org. Implements org. Doc from org. Proves the public key identity by signing the given data
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public KeyPair | |
| public Map. | sign(SessionContext
The session, String SessionContext for calling this method - may be null if not called within a
session contextRecommended signature algorithm - if algo, byte[] null/empty then one will be selected based on the
key type and/or signature factoriesNote even if specific algorithm specified, the implementation may disregard and choose another Data to sign data)Implements org. Proves the public key identity by signing the given data |
| pair | back to summary |
|---|---|
| private final KeyPair pair
| |
| KeyPairIdentity | back to summary |
|---|---|
| pack-priv KeyPairIdentity(KeyPair pair) | |
| getKeyIdentity | back to summary |
|---|---|
| public KeyPair getKeyIdentity() Implements org.
| |
| sign | back to summary |
|---|---|
| public Map. Implements org. Doc from org. Proves the public key identity by signing the given data
| |