Interface SecurityProviderChoice
-
- All Superinterfaces:
NamedResource
- All Known Subinterfaces:
SecurityProviderRegistrar
- All Known Implementing Classes:
AbstractSecurityProviderRegistrar
,BouncyCastleSecurityProviderRegistrar
,EdDSASecurityProviderRegistrar
public interface SecurityProviderChoice extends NamedResource
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static SecurityProviderChoice
EMPTY
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static Provider
createProviderInstance(Class<?> anchor, String providerClassName)
Provider
getSecurityProvider()
default boolean
isNamedProviderUsed()
static SecurityProviderChoice
toSecurityProviderChoice(String name)
static SecurityProviderChoice
toSecurityProviderChoice(Provider provider)
-
Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
-
-
-
Field Detail
-
EMPTY
static final SecurityProviderChoice EMPTY
-
-
Method Detail
-
isNamedProviderUsed
default boolean isNamedProviderUsed()
- Returns:
true
if to use the provider's name rather than itsProvider
instance - default=true
.
-
getSecurityProvider
Provider getSecurityProvider()
- Returns:
- The security
Provider
to use in caseisNamedProviderUsed()
isfalse
. Can benull
ifisNamedProviderUsed()
istrue
, but not recommended.
-
toSecurityProviderChoice
static SecurityProviderChoice toSecurityProviderChoice(String name)
-
toSecurityProviderChoice
static SecurityProviderChoice toSecurityProviderChoice(Provider provider)
-
createProviderInstance
static Provider createProviderInstance(Class<?> anchor, String providerClassName) throws ReflectiveOperationException
- Throws:
ReflectiveOperationException
-
-