Package com.hazelcast.security
Interface ICredentialsFactory
-
- All Known Implementing Classes:
StaticCredentialsFactory
public interface ICredentialsFactory
ICredentialsFactory is used to createCredentials
objects to be used during node authentication before connection is accepted by the master node.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
configure(javax.security.auth.callback.CallbackHandler callbackHandler)
ConfiguresICredentialsFactory
.void
destroy()
DestroysICredentialsFactory
.default void
init(java.util.Properties properties)
This method is (only) called if the factory instance is newly created from a class name provided inCredentialsFactoryConfig
.Credentials
newCredentials()
Creates newCredentials
object.default Credentials
newCredentials(Address address)
Creates newCredentials
object for given targetAddress
.
-
-
-
Method Detail
-
init
default void init(java.util.Properties properties)
This method is (only) called if the factory instance is newly created from a class name provided inCredentialsFactoryConfig
.- Parameters:
properties
- factory properties defined in configuration
-
configure
void configure(javax.security.auth.callback.CallbackHandler callbackHandler)
ConfiguresICredentialsFactory
.- Parameters:
callbackHandler
- callback handler which can provide access to system internals
-
newCredentials
Credentials newCredentials()
Creates newCredentials
object.- Returns:
- the new Credentials object
-
newCredentials
default Credentials newCredentials(Address address)
Creates newCredentials
object for given targetAddress
.- Parameters:
address
- TargetAddress
(may benull
)- Returns:
-
destroy
void destroy()
DestroysICredentialsFactory
.
-
-