public enum BuiltinIdentities extends Enum<BuiltinIdentities> implements Identity
| Modifier and Type | Class and Description |
|---|---|
static class |
BuiltinIdentities.Constants
Contains the names of the identities
|
NamedResource.Utils| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
NAMES |
static Set<BuiltinIdentities> |
VALUES |
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier and Type | Method and Description |
|---|---|
static BuiltinIdentities |
fromAlgorithm(String algorithm) |
static BuiltinIdentities |
fromKey(Key key) |
static BuiltinIdentities |
fromKeyPair(KeyPair kp) |
static BuiltinIdentities |
fromKeyType(Class<?> clazz) |
static BuiltinIdentities |
fromName(String name) |
String |
getAlgorithm() |
String |
getName() |
Class<? extends PrivateKey> |
getPrivateKeyType() |
Class<? extends PublicKey> |
getPublicKeyType() |
boolean |
isSupported() |
static BuiltinIdentities |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltinIdentities[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltinIdentities RSA
public static final BuiltinIdentities DSA
public static final BuiltinIdentities ECDSA
public static final Set<BuiltinIdentities> VALUES
public static BuiltinIdentities[] values()
for (BuiltinIdentities c : BuiltinIdentities.values()) System.out.println(c);
public static BuiltinIdentities valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final String getName()
getName in interface NamedResourcepublic boolean isSupported()
isSupported in interface OptionalFeaturepublic String getAlgorithm()
getAlgorithm in interface Identitypublic final Class<? extends PublicKey> getPublicKeyType()
getPublicKeyType in interface Identitypublic final Class<? extends PrivateKey> getPrivateKeyType()
getPrivateKeyType in interface Identitypublic static BuiltinIdentities fromName(String name)
name - The identity name - ignored if null/emptyBuiltinIdentities whose getName()
value matches case insensitive or null if no match foundpublic static BuiltinIdentities fromAlgorithm(String algorithm)
algorithm - The algorithm - ignored if null/emptyBuiltinIdentities whose getAlgorithm()
value matches case insensitive or null if no match foundpublic static BuiltinIdentities fromKeyPair(KeyPair kp)
kp - The KeyPair - ignored if nullBuiltinIdentities provided both
public and public keys are of the same type - null if no
match could be foundfromKey(Key)public static BuiltinIdentities fromKey(Key key)
key - The Key instance - ignored if nullBuiltinIdentities whose either public or
private key type matches the requested one or null if no match foundfromKeyType(Class)public static BuiltinIdentities fromKeyType(Class<?> clazz)
clazz - The key type - ignored if null or not
a Key classBuiltinIdentities whose either public or
private key type matches the requested one or null if no match foundgetPublicKeyType(),
getPrivateKeyType()Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.