Package com.hazelcast.security
Interface ICredentialsFactory
- All Known Implementing Classes:
StaticCredentialsFactory
public interface ICredentialsFactory
ICredentialsFactory is used to create
Credentials
objects to be used during node authentication before connection is
accepted by the master node.-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(CallbackHandler callbackHandler) ConfiguresICredentialsFactory
.void
destroy()
DestroysICredentialsFactory
.default void
init
(Properties properties) This method is (only) called if the factory instance is newly created from a class name provided inCredentialsFactoryConfig
.Creates newCredentials
object.default Credentials
newCredentials
(Address address) Creates newCredentials
object for given targetAddress
.
-
Method Details
-
init
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
ConfiguresICredentialsFactory
.- Parameters:
callbackHandler
- callback handler which can provide access to system internals
-
newCredentials
Credentials newCredentials()Creates newCredentials
object.- Returns:
- the new Credentials object
-
newCredentials
Creates newCredentials
object for given targetAddress
.- Parameters:
address
- TargetAddress
(may benull
)- Returns:
- the new Credentials object
-
destroy
void destroy()DestroysICredentialsFactory
.
-