Top Fields Methods
org.apache.sshd.common.util.security

public Interface SecurityProviderChoice

extends NamedResource
Known Direct Subinterfaces
org.apache.sshd.common.util.security.SecurityProviderRegistrar
Imports
java.security.Provider, java.util.Objects, org.apache.sshd.common.NamedResource, org.apache.sshd.common.util.ValidateUtils, org.apache.sshd.common.util.threads.ThreadUtils

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
public static final SecurityProviderChoice
Inherited from org.apache.sshd.common.NamedResource:
BY_NAME_COMPARATORNAME_EXTRACTOR

Method Summary

Modifier and TypeMethod and Description
public static Provider
createProviderInstance(Class<?> anchor, String providerClassName)

public default String

Returns:

the Provider's name
getProviderName
()

Retrieves the underlying Provider's name.

public Provider

Returns:

The security Provider to use in case isNamedProviderUsed() is false. Can be null if isNamedProviderUsed() is true, but not recommended.
getSecurityProvider
()

public default boolean

Returns:

true if to use the provider's name rather than its Provider instance - default=true.
isNamedProviderUsed
()

public static SecurityProviderChoice
public static SecurityProviderChoice
Inherited from org.apache.sshd.common.NamedResource:
findByNamefindFirstMatchByNamegetNamegetNameListgetNamesofNameremoveByNamesafeCompareByName

Field Detail

EMPTYback to summary
public static final SecurityProviderChoice EMPTY

Method Detail

createProviderInstanceback to summary
public static Provider createProviderInstance(Class<?> anchor, String providerClassName) throws ReflectiveOperationException
getProviderNameback to summary
public default String getProviderName()

Retrieves the underlying Provider's name.

Returns:String

the Provider's name

getSecurityProviderback to summary
public Provider getSecurityProvider()
Returns:Provider

The security Provider to use in case isNamedProviderUsed() is false. Can be null if isNamedProviderUsed() is true, but not recommended.

isNamedProviderUsedback to summary
public default boolean isNamedProviderUsed()
Returns:boolean

true if to use the provider's name rather than its Provider instance - default=true.

toSecurityProviderChoiceback to summary
public static SecurityProviderChoice toSecurityProviderChoice(String name)
toSecurityProviderChoiceback to summary
public static SecurityProviderChoice toSecurityProviderChoice(Provider provider)