Package com.hazelcast.config.security
Class TokenIdentityConfig
java.lang.Object
com.hazelcast.config.security.TokenIdentityConfig
- All Implemented Interfaces:
IdentityConfig
Simple token identity configuration.
-
Constructor Summary
ConstructorDescriptionTokenIdentityConfig
(byte[] token) TokenIdentityConfig
(TokenEncoding encoding, String encodedToken) -
Method Summary
Modifier and TypeMethodDescriptionConverts current configuration to aICredentialsFactory
instance.copy()
Makes a copy (or clone) of the config object.boolean
byte[]
getToken()
int
hashCode()
toString()
-
Constructor Details
-
TokenIdentityConfig
-
TokenIdentityConfig
public TokenIdentityConfig(byte[] token)
-
-
Method Details
-
getTokenEncoded
-
getToken
public byte[] getToken() -
getEncoding
-
asCredentialsFactory
Description copied from interface:IdentityConfig
Converts current configuration to aICredentialsFactory
instance.- Specified by:
asCredentialsFactory
in interfaceIdentityConfig
- Parameters:
cl
- class loader to be used if the credentials factory class has to be constructed.- Returns:
ICredentialsFactory
instance
-
copy
Description copied from interface:IdentityConfig
Makes a copy (or clone) of the config object.- Specified by:
copy
in interfaceIdentityConfig
-
hashCode
public int hashCode() -
equals
-
toString
-