Uses of Interface
com.sshtools.common.ssh.components.SshPublicKey
Packages that use SshPublicKey
Package
Description
This package contains an abstract cryptographic provider for the SSH protocol.
This package contains a set of algoritm implementations that enable the Maverick API
to use a Java Cryptography Extension provider.
-
Uses of SshPublicKey in com.sshtools.common.auth
Methods in com.sshtools.common.auth that return SshPublicKeyModifier and TypeMethodDescriptionInMemoryMutualKeyAuthenticationStore.getPublicKey(SshConnection con) MutualKeyAuthenticatonStore.getPublicKey(SshConnection con) Methods in com.sshtools.common.auth with parameters of type SshPublicKeyModifier and TypeMethodDescriptionvoidAbstractPublicKeyAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidAuthorizedKeysPublicKeyAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidOpenSshCertificateAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidPublicKeyAuthenticationAdapter.add(SshPublicKey key, String comment, SshConnection con) voidPublicKeyAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidUniversalAuthenticationProvider.add(SshPublicKey key, String comment, SshConnection con) voidOpenSshCertificateAuthenticationProvider.addCAKey(SshPublicKey caKey) InMemoryMutualKeyAuthenticationStore.addKey(String username, SshKeyPair privateKey, SshPublicKey publicKey) booleanAbstractPublicKeyAuthenticationProvider.checkKey(SshPublicKey key, SshConnection con) booleanAuthorizedKeysPublicKeyAuthenticationProvider.checkKey(SshPublicKey key, SshConnection con) booleanOpenSshCertificateAuthenticationProvider.checkKey(SshPublicKey key, SshConnection con) booleanPublicKeyAuthenticationProvider.checkKey(SshPublicKey key, SshConnection con) booleanUniversalAuthenticationProvider.checkKey(SshPublicKey key, SshConnection con) booleanAuthorizedKeysPublicKeyAuthenticationProvider.isAuthorizedKey(SshPublicKey key, SshConnection con) Checks the given public key by comparing it against the public keys stored in the users authorized_keys file.booleanOpenSshCertificateAuthenticationProvider.isAuthorizedKey(SshPublicKey key, SshConnection con) booleanPublicKeyAuthenticationProvider.isAuthorizedKey(SshPublicKey key, SshConnection con) Check the supplied public key against the users authorized keys.booleanUniversalAuthenticationProvider.isAuthorizedKey(SshPublicKey key, SshConnection con) voidAbstractPublicKeyAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidAuthorizedKeysPublicKeyAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidOpenSshCertificateAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidPublicKeyAuthenticationAdapter.remove(SshPublicKey key, SshConnection con) voidPublicKeyAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidUniversalAuthenticationProvider.remove(SshPublicKey key, SshConnection con) voidOpenSshCertificateAuthenticationProvider.removeKey(SshPublicKey caKey) booleanDefaultPublicKeyAuthenticationVerifier.verifySignature(SshPublicKey key, byte[] signature, byte[] data) booleanPublicKeyAuthenticationVerifier.verifySignature(SshPublicKey key, byte[] signature, byte[] data) Constructors in com.sshtools.common.auth with parameters of type SshPublicKeyModifierConstructorDescriptionOpenSshCertificateAuthenticationProvider(SshPublicKey... caPublicKey) Constructor parameters in com.sshtools.common.auth with type arguments of type SshPublicKeyModifierConstructorDescriptionOpenSshCertificateAuthenticationProvider(Collection<SshPublicKey> caPublicKeys) -
Uses of SshPublicKey in com.sshtools.common.knownhosts
Methods in com.sshtools.common.knownhosts that return SshPublicKeyMethods in com.sshtools.common.knownhosts with parameters of type SshPublicKeyModifier and TypeMethodDescriptionvoidKnownHostsKeyVerification.addEntry(SshPublicKey key, String comment, boolean always, String... names) voidKnownHostsKeyVerification.addEntry(SshPublicKey key, String comment, String... names) voidKnownHostsKeyVerification.allowHost(String host, SshPublicKey key, boolean always) booleanHostKeyUpdater.isKnownHost(String host, SshPublicKey key) booleanKnownHostsKeyVerification.isKnownHost(String host, SshPublicKey key) protected voidKnownHostsFile.onHostKeyAdded(Set<String> names, SshPublicKey key) protected voidKnownHostsKeyVerification.onHostKeyAdded(Set<String> names, SshPublicKey key) protected voidConsoleKnownHostsFile.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actual) protected voidKnownHostsFile.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actualHostKey) protected voidKnownHostsKeyVerification.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actualHostKey) Called by theverifyHostmethod when the host key supplied by the host does not match the current key recording in the known hosts file.protected voidKnownHostsFile.onHostKeyRemoved(Set<String> names, SshPublicKey key) protected voidKnownHostsKeyVerification.onHostKeyRemoved(Set<String> names, SshPublicKey key) protected voidKnownHostsFile.onHostKeyUpdated(Set<String> names, SshPublicKey key) protected voidKnownHostsKeyVerification.onHostKeyUpdated(Set<String> names, SshPublicKey key) protected voidConsoleKnownHostsFile.onRevokedKey(String host, SshPublicKey key) protected voidKnownHostsFile.onRevokedKey(String host, SshPublicKey key) protected voidKnownHostsKeyVerification.onRevokedKey(String host, SshPublicKey key) Called by theverifyHostmethod when the host key supplied is listed as a revoked key.voidConsoleKnownHostsFile.onUnknownHost(String host, SshPublicKey pk) Prompts the user through the console to verify the host key.protected voidKnownHostsFile.onUnknownHost(String host, SshPublicKey key) protected voidKnownHostsKeyVerification.onUnknownHost(String host, SshPublicKey key) Called by theverifyHostmethod when the host key supplied is not recorded in the known_hosts file.voidKnownHostsKeyVerification.removeEntries(SshPublicKey key) voidHostKeyUpdater.updateHostKey(String host, SshPublicKey key) voidKnownHostsKeyVerification.updateHostKey(String host, SshPublicKey key) booleanHostKeyVerification.verifyHost(String host, SshPublicKey pk) Verify that the public key is acceptable for the host.booleanHostKeyVerificationManager.verifyHost(String host, SshPublicKey pk) booleanKnownHostsKeyVerification.verifyHost(String host, SshPublicKey pk) Verifies a host key against the list of known_hosts.protected booleanKnownHostsKeyVerification.verifyHost(String host, SshPublicKey pk, boolean validateUnknown) booleanX509HostKeyVerification.verifyHost(String host, SshPublicKey pk) Method parameters in com.sshtools.common.knownhosts with type arguments of type SshPublicKeyModifier and TypeMethodDescriptionprotected voidConsoleKnownHostsFile.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actual) protected voidKnownHostsFile.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actualHostKey) protected voidKnownHostsKeyVerification.onHostKeyMismatch(String host, List<SshPublicKey> allowedHostKey, SshPublicKey actualHostKey) Called by theverifyHostmethod when the host key supplied by the host does not match the current key recording in the known hosts file. -
Uses of SshPublicKey in com.sshtools.common.publickey
Classes in com.sshtools.common.publickey that implement SshPublicKeyModifier and TypeClassDescriptionclassTo generate a key that supports this use ssh-keygen -s ca_key -I 2 -n lee,kelly -z 12345 -O force-command=ls -O source-address=192.168.82.0/24 -O no-port-forwarding user_key.pubFields in com.sshtools.common.publickey declared as SshPublicKeyMethods in com.sshtools.common.publickey that return SshPublicKeyModifier and TypeMethodDescriptionstatic SshPublicKeySshPublicKeyFileFactory.decodeSSH2PublicKey(byte[] encoded) Decode an SSH2 encoded public key as specified in the SSH2 transport protocol.static SshPublicKeySshPublicKeyFileFactory.decodeSSH2PublicKey(String algorithm, byte[] encoded) static SshPublicKeySshKeyUtils.getPublicKey(File key) static SshPublicKeySshKeyUtils.getPublicKey(InputStream key) static SshPublicKeySshKeyUtils.getPublicKey(String formattedKey) static SshPublicKeySshKeyUtils.getPublicKey(Path path) OpenSshCertificate.getSignedBy()OpenSshCertificate.getSignedKey()OpenSshCertificate.init(byte[] blob, int start, int len) OpenSSHPublicKeyFile.toPublicKey()SECSHPublicKeyFile.toPublicKey()SshPublicKeyFile.toPublicKey()Convert the key file into a usable SshPublicKey.Methods in com.sshtools.common.publickey that return types with arguments of type SshPublicKeyModifier and TypeMethodDescriptionSignatureGenerator.getPublicKeys()List the public keys supported by this signature generator.Methods in com.sshtools.common.publickey with parameters of type SshPublicKeyModifier and TypeMethodDescriptionstatic SshPublicKeyFileSshPublicKeyFileFactory.create(SshPublicKey key, String comment, int format) Create a file representation from an existing public key.static SshPublicKeyFileSshPublicKeyFileFactory.create(SshPublicKey key, String options, String comment, int format) Create a file representation from an existing public key.static voidSshPublicKeyFileFactory.createFile(SshPublicKey key, String comment, int format, File toFile) Take a SshPublicKey and write it to a filestatic voidSshKeyUtils.createPublicKeyFile(SshPublicKey publicKey, String comment, File file) static voidSshKeyUtils.createPublicKeyFile(SshPublicKey publicKey, String comment, File file, int format) static StringSshKeyUtils.getBubbleBabble(SshPublicKey pub) static StringSshKeyUtils.getFingerprint(SshPublicKey key) static StringSshKeyUtils.getFormattedKey(SshPublicKey key, String comment) static StringSshKeyUtils.getFormattedKey(SshPublicKey key, String comment, int format) static StringSshKeyUtils.getOpenSSHFormattedKey(SshPublicKey key) static StringSshKeyUtils.getOpenSSHFormattedKey(SshPublicKey key, String comment) voidOpenSshCertificate.sign(SshPublicKey publicKey, com.sshtools.common.util.UnsignedInteger64 serial, int type, String keyId, List<String> validPrincipals, com.sshtools.common.util.UnsignedInteger64 validAfter, com.sshtools.common.util.UnsignedInteger64 validBefore, List<CriticalOption> criticalOptions, List<CertificateExtension> extensions, SshKeyPair signingKey) byte[]SignatureGenerator.sign(SshPublicKey key, String signingAlgorithm, byte[] data) Sign the data using the private key of the public key provided. -
Uses of SshPublicKey in com.sshtools.common.publickey.authorized
Methods in com.sshtools.common.publickey.authorized with parameters of type SshPublicKeyModifier and TypeMethodDescriptionvoidAuthorizedKeyFile.addKey(SshPublicKey key, String comment) voidAuthorizedKeyFile.addKey(SshPublicKey key, String comment, Option<?>... options) AuthorizedKeyFile.getKeyEntry(SshPublicKey key) booleanAuthorizedKeyFile.isAuthorizedKey(SshPublicKey key) voidAuthorizedKeyFile.removeKeys(SshPublicKey... keys) voidAuthorizedKeyFile.setOption(SshPublicKey key, Option<?> option) -
Uses of SshPublicKey in com.sshtools.common.ssh
Methods in com.sshtools.common.ssh that return SshPublicKeyMethods in com.sshtools.common.ssh with parameters of type SshPublicKeyModifier and TypeMethodDescriptionstatic StringSshKeyFingerprint.getBubbleBabble(SshPublicKey key) static StringSshKeyFingerprint.getFingerprint(SshPublicKey key) -
Uses of SshPublicKey in com.sshtools.common.ssh.components
Classes in com.sshtools.common.ssh.components with type parameters of type SshPublicKeySubinterfaces of SshPublicKey in com.sshtools.common.ssh.componentsModifier and TypeInterfaceDescriptioninterfaceThis interface should be implemented by all DSA public key implementations.interfaceThis interface should be implemented by all RSA public key implementations.Methods in com.sshtools.common.ssh.components that return SshPublicKeyModifier and TypeMethodDescriptionSshKeyPair.getPublicKey()Get the public key.default SshPublicKeySshPublicKey.init(byte[] blob) SshPublicKey.init(byte[] blob, int start, int len) Initialize the public key from a blob of binary data.Methods in com.sshtools.common.ssh.components that return types with arguments of type SshPublicKeyModifier and TypeMethodDescriptionSshKeyPair.getPublicKeys()ComponentManager.supportedPublicKeys()The supported public keysMethods in com.sshtools.common.ssh.components with parameters of type SshPublicKeyModifier and TypeMethodDescriptionstatic SshKeyPairSshKeyPair.getKeyPair(SshPrivateKey prv, SshPublicKey pub) Wraps a public/private key pair into an SshKeyPair instance.voidSshKeyPair.setPublicKey(SshPublicKey publickey) Set the public keybyte[]SshKeyPair.sign(SshPublicKey key, String signingAlgorithm, byte[] data) Method parameters in com.sshtools.common.ssh.components with type arguments of type SshPublicKeyModifier and TypeMethodDescriptionprotected abstract voidComponentManager.initializePublicKeyFactory(ComponentFactory<SshPublicKey> publickeys) Initialize the public key factory. -
Uses of SshPublicKey in com.sshtools.common.ssh.components.jce
Subinterfaces of SshPublicKey in com.sshtools.common.ssh.components.jceClasses in com.sshtools.common.ssh.components.jce that implement SshPublicKeyModifier and TypeClassDescriptionclassclassclassclassclassclassA RSA public key implementation which uses a JCE provider.classA RSA public key implementation which uses a JCE provider.classA RSA public key implementation which uses a JCE provider.classA DSA public key implementation which uses a JCE provider.classclassclassclassclassA RSA public key implementation which uses a JCE provider.classclassclassclassMethods in com.sshtools.common.ssh.components.jce that return SshPublicKeyModifier and TypeMethodDescriptionSsh2DsaPublicKey.init(byte[] blob, int start, int len) Initialize the public key from a blob of binary data.Ssh2EcdsaSha2NistPublicKey.init(byte[] blob, int start, int len) Ssh2RsaPublicKey.init(byte[] blob, int start, int len) SshEd25519PublicKeyJCE.init(byte[] blob, int start, int len) SshEd448PublicKeyJCE.init(byte[] blob, int start, int len) Method parameters in com.sshtools.common.ssh.components.jce with type arguments of type SshPublicKeyModifier and TypeMethodDescriptionprotected voidJCEComponentManager.initializePublicKeyFactory(ComponentFactory<SshPublicKey> publickeys)