Package com.hazelcast.config.security
Class StaticCredentialsFactory
- java.lang.Object
-
- com.hazelcast.config.security.StaticCredentialsFactory
-
- All Implemented Interfaces:
ICredentialsFactory
public class StaticCredentialsFactory extends java.lang.Object implements ICredentialsFactory
The credentials factory implementation which just takes credentials in a constructor and provides it for everynewCredentials()
call.
-
-
Constructor Summary
Constructors Constructor Description StaticCredentialsFactory(Credentials credentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(javax.security.auth.callback.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 Detail
-
StaticCredentialsFactory
public StaticCredentialsFactory(Credentials credentials)
-
-
Method Detail
-
configure
public void configure(javax.security.auth.callback.CallbackHandler callbackHandler)
Description copied from interface:ICredentialsFactory
ConfiguresICredentialsFactory
.- Specified by:
configure
in interfaceICredentialsFactory
- Parameters:
callbackHandler
- callback handler which can provide access to system internals
-
newCredentials
public Credentials 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
-
-