Package com.hazelcast.config.security
Class StaticCredentialsFactory
java.lang.Object
com.hazelcast.config.security.StaticCredentialsFactory
- All Implemented Interfaces:
ICredentialsFactory
public class StaticCredentialsFactory extends Object implements ICredentialsFactory
The credentials factory implementation which just takes credentials in a constructor and provides it for every
newCredentials()
call.-
Constructor Summary
Constructors Constructor Description StaticCredentialsFactory(Credentials credentials)
-
Method Summary
Modifier and Type Method Description void
configure(CallbackHandler callbackHandler)
ConfiguresICredentialsFactory
.void
destroy()
DestroysICredentialsFactory
.Credentials
newCredentials()
Creates newCredentials
object.
-
Constructor Details
-
Method Details
-
configure
Description copied from interface:ICredentialsFactory
ConfiguresICredentialsFactory
.- Specified by:
configure
in interfaceICredentialsFactory
- Parameters:
callbackHandler
- callback handler which can provide access to system internals
-
newCredentials
Description copied from interface:ICredentialsFactory
Creates newCredentials
object.- Specified by:
newCredentials
in interfaceICredentialsFactory
- Returns:
- the new Credentials object
-
destroy
public void destroy()Description copied from interface:ICredentialsFactory
DestroysICredentialsFactory
.- Specified by:
destroy
in interfaceICredentialsFactory
-