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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.hazelcast.security.ICredentialsFactory
init, newCredentials
-
Constructor Details
-
StaticCredentialsFactory
-
-
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
-