public interface SecurityProviderChoice extends NamedResource
Modifier and Type | Field and Description |
---|---|
static SecurityProviderChoice |
EMPTY |
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier and Type | Method and Description |
---|---|
static Provider |
createProviderInstance(Class<?> anchor,
String providerClassName) |
Provider |
getSecurityProvider() |
default boolean |
isNamedProviderUsed() |
static SecurityProviderChoice |
toSecurityProviderChoice(Provider provider) |
static SecurityProviderChoice |
toSecurityProviderChoice(String name) |
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByName
static final SecurityProviderChoice EMPTY
default boolean isNamedProviderUsed()
true
if to use the provider's name rather than its Provider
instance -
default=true
.Provider getSecurityProvider()
Provider
to use in case isNamedProviderUsed()
is false
. Can be
null
if isNamedProviderUsed()
is true
, but not recommended.static SecurityProviderChoice toSecurityProviderChoice(String name)
static SecurityProviderChoice toSecurityProviderChoice(Provider provider)
static Provider createProviderInstance(Class<?> anchor, String providerClassName) throws ReflectiveOperationException
ReflectiveOperationException
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.