| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private static final Map | |
| private static final AtomicReference | |
| public static final DigestFactory | DEFAULT_FINGERPRINT_DIGEST_FACTORY
The default |
| public static final BigInteger | DEFAULT_RSA_PUBLIC_EXPONENT
The most commonly used RSA public key exponent |
| public static final String | DSS_ALGORITHM
Name of algorithm for DSS keys to be used when calling security provider |
| public static final String | EC_ALGORITHM
Name of algorithm for EC keys to be used when calling security provider |
| public static final String | KEY_FINGERPRINT_FACTORY_PROP
System property that can be used to control the default fingerprint factory used for keys. |
| private static final Map | |
| public static final String | RSA_ALGORITHM
Name of algorithm for RSA keys to be used when calling security provider |
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final Map | |
| public static final Set | STRICTLY_PROHIBITED_FILE_PERMISSION
The |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractMap. | Returns: SimpleImmutableEntrynull if no key.The expected fingerprint if expected, PublicKey null or empty then returns a failure with the default
fingerprint.the key)PublicKey - if null then returns null.
|
| public static AbstractMap. | Returns: SimpleImmutableEntrynull if no key.The expected fingerprint if expected, Factory<? extends Digest> f, PublicKey null or empty then returns a failure with the default
fingerprint.the key)PublicKey - if null then returns null.
|
| public static AbstractMap. | Returns: SimpleImmutableEntrynull if no key.The expected fingerprint if expected, Digest null or empty then returns a failure with the default
fingerprint.The d, PublicKey Digest to be used to generate the default fingerprint for the keythe key)PublicKey - if null then returns null.
|
| public static KeyPair | Returns: The cloned instanceThe key type - keyType, KeyPair OpenSSH name - e.g., ssh-rsa, ssh-dssThe kp)KeyPair to clone - ignored if nullPerforms a deep-clone of the original |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static PublicKey | findMatchingKey(PublicKey
The key, PublicKey... PublicKey to be checked - ignored if nullThe keys to be searched - ignored if keySet)null/empty
|
| public static PublicKey | findMatchingKey(PublicKey
The key, Collection<? extends PublicKey> PublicKey to be checked - ignored if nullThe keys to be searched - ignored if keySet)null/empty
|
| public static KeyPair | Returns: AKeyPair of the specified type and sizeThe key type - keyType, int OpenSSH name - e.g., ssh-rsa, ssh-dssThe key size (in bits) keySize)
|
| public static List | Returns: AList of they canonical key name and all its aliasesA key type name - ignored if keyType)null/empty
|
| public static String | Returns: The canonical key type - same as input if no alias registered for the provided key typeThe available key-type - ignored if keyType)null/empty
|
| public static DigestFactory | Returns: The defaultDigestFactory by the getFingerPrint(PublicKey) and
getFingerPrint(String) methods
|
| public static String | Returns: the fingerprint ornull if no keyNote if exception encountered then returns the exception's simple class name the public key - ignored if key)null
|
| public static String | Returns: The fingerprint -null if null/empty inputNote if exception encountered then returns the exception's simple class name The password)String to digest - ignored if null/empty, otherwise its UTF-8 representation
is used as input for the fingerprint
|
| public static String | Returns: The fingerprint -null if null/empty inputNote if exception encountered then returns the exception's simple class name The password, Charset String to digest - ignored if null/emptyThe charset)Charset to use in order to convert the string to its byte representation to use as
input for the fingerprint
|
| public static String | |
| public static String | Returns: the fingerprint ornull if no keyNote if exception encountered then returns the exception's simple class name The d, PublicKey Digest to usethe public key - ignored if key)null
|
| public static String | Returns: The fingerprint -null if null/empty inputNote if exception encountered then returns the exception's simple class name The s)String to digest - ignored if null/empty, otherwise its UTF-8 representation is
used as input for the fingerprint
|
| public static String | Returns: The fingerprint -null if null/empty input Note: if exception encountered
then returns the exception's simple class nameThe s, Charset String to digest - ignored if null/emptyThe charset)Charset to use in order to convert the string to its byte representation to use as
input for the fingerprint
|
| public static String | Returns: The fingerprint -null if null/empty inputNote if exception encountered then returns the exception's simple class name The d, String Digest to useThe s)String to digest - ignored if null/empty, otherwise its UTF-8 representation is
used as input for the fingerprint
|
| public static String | Returns: The fingerprint -null if null/empty inputNote if exception encountered then returns the exception's simple class name The d, String Digest to use to calculate the fingerprintThe string to digest - ignored if s, Charset null/emptyThe charset)Charset to use in order to convert the string to its byte representation to use as
input for the fingerprint
|
| public static int | Returns: The key size - non-positive value if cannot determine itThe key)Key to examine - ignored if nullDetermines the key size in bits |
| public static String | Returns: the key type ornull if cannot determine ita key pair - ignored if kp)null. If the private key is non-null then it is used to
determine the type, otherwise the public one is used.
|
| public static String | |
| public static PublicKeyEntryDecoder | Returns: The registeredPublicKeyEntryDecoder or {code null} if not foundThe keyType)OpenSSH key type string - e.g., ssh-rsa, ssh-dss - ignored if
null/empty
|
| public static PublicKeyEntryDecoder | Returns: The matchingPublicKeyEntryDecoder provided both the public and private keys have the
same decoder - null if no match foundThe kp)KeyPair to examine - ignored if null
|
| public static PublicKeyEntryDecoder | Returns: The registeredPublicKeyEntryDecoder for this key or {code null} if no match foundThe key)Key (public or private) - ignored if null
|
| public static PublicKeyEntryDecoder | Returns: The registeredPublicKeyEntryDecoder or {code null} if no match found
|
| public static byte[] | |
| public static byte[] | |
| public static byte[] | |
| public static NavigableSet | Returns: A case insensitiveNavigableSet of the currently registered key type "aliases".
|
| public static String | |
| public static PublicKey | loadPublicKey(Path
Path of the file to read; must not be nullReads a single |
| public static DSAPublicKey | |
| public static RSAPublicKey | |
| public static PublicKey | |
| public static RSAPublicKey | |
| public static RSAPublicKey | |
| public static RSAPublicKey | |
| public static List | Returns: AList of the replaced aliases - empty if no previous aliases for the canonical nameThe (never keyType, Collection<String> null/empty) canonical nameThe (never aliases)null/empty) aliasesRegisters a collection of aliases to a canonical key type |
| public static void | |
| public static PublicKeyEntryDecoder | Returns: The previously registered decoder for this key type -null if noneThe key (never keyType, PublicKeyEntryDecoder<?, ?> null/empty) key typeThe (never decoder)null) decoder to register
|
| public static void | registerPublicKeyEntryDecoderKeyTypes(PublicKeyEntryDecoder<?, ?>
The (never decoder)null) decoder to registerRegisters the specified decoder for all the types it |
| public static void | |
| public static String | Returns: The associated canonical key type -null if alias not registeredThe alias to unregister (ignored if alias)null/empty)
|
| public static NavigableSet | Returns: The case insensitiveNavigableSet of all the effectively un-registered key types
out of all the supported ones.The (never decoder)null) decoder to unregister
|
| public static PublicKeyEntryDecoder | unregisterPublicKeyEntryDecoderForKeyType(String
The key (never keyType)null/empty) key typeUnregister the decoder registered for the specified key type |
| public static NavigableSet | Returns: The case insensitiveNavigableSet of all the effectively un-registered key types
out of all the supported ones.The (never decoder)null) decoder to unregisterUnregisters the specified decoder for all the types it supports |
| public static AbstractMap. | Returns: The violated permission asSimpleImmutableEntry where key is a message and value is
the offending object PosixFilePermission or String for owner - null
if no violations detectedThe path, LinkOption... Path to be checked - ignored if null or does not existThe options)LinkOptions to use to query the file's permissionsChecks if a path has strict permissions
|