JavaScript is disabled on your browser.
Nested Class Summary
Nested Classes
static final class
Contains the names of the identities
Enum Constant Summary
Enum Constants
Field Summary
Fields
A case
insensitive NavigableSet
of all built-in identities names
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
boolean
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Field Details
NAMES
A case
insensitive NavigableSet
of all built-in identities names
algorithm
private final String algorithm
Method Details
values
Returns an array containing the constants of this enum type, in
the order they are declared.
Returns:
an array containing the constants of this enum type, in the order they are declared
valueOf
Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum type has no constant with the specified name
NullPointerException
- if the argument is null
getSupportedKeyTypes
Specified by:
getSupportedKeyTypes
in interface KeyTypeNamesSupport
Returns:
The case insensitive NavigableSet
of OpenSSH
key type names that are supported by this
decoder - e.g., ssh-rsa, ssh-dss, ecdsa-sha2-nistp384
. This is not a single name - e.g., ECDSA
keys have several curve names. Caveat: this collection may be un-modifiable...
fromName
Parameters:
name
- The identity name - ignored if null
/empty
Returns:
The matching BuiltinIdentities
whose getName()
value matches case
insensitive or null
if no match found
fromAlgorithm
Parameters:
algorithm
- The algorithm - ignored if null
/empty
Returns:
The matching BuiltinIdentities
whose getAlgorithm()
value matches case
insensitive or null
if no match found
fromKeyPair
Parameters:
kp
- The KeyPair
- ignored if null
Returns:
The matching BuiltinIdentities
provided both public and public keys are of the same
type - null
if no match could be found
See Also:
fromKey
Parameters:
key
- The Key
instance - ignored if null
Returns:
The matching BuiltinIdentities
whose either public or private key type matches the requested
one or null
if no match found
See Also:
fromKeyType
Parameters:
clazz
- The key type - ignored if null
or not a Key
class
Returns:
The matching BuiltinIdentities
whose either public or private key type matches the
requested one or null
if no match found
See Also:
fromKeyTypeName
Parameters:
typeName
- The OpenSSH
key type e.g., ssh-rsa, ssh-dss, ecdsa-sha2-nistp384
. Ignored if
null
/empty.
Returns:
The BuiltinIdentities
that reported the type name as its getSupportedKeyTypes()
(case insensitive ) - null
if no match found
See Also: