public class TokenIdentityConfig extends Object implements IdentityConfig
Constructor and Description |
---|
TokenIdentityConfig(byte[] token) |
TokenIdentityConfig(TokenEncoding encoding,
String encodedToken) |
Modifier and Type | Method and Description |
---|---|
ICredentialsFactory |
asCredentialsFactory(ClassLoader cl)
Converts current configuration to a
ICredentialsFactory instance. |
IdentityConfig |
copy()
Makes a copy (or clone) of the config object.
|
boolean |
equals(Object obj) |
TokenEncoding |
getEncoding() |
byte[] |
getToken() |
String |
getTokenEncoded() |
int |
hashCode() |
String |
toString() |
public TokenIdentityConfig(TokenEncoding encoding, String encodedToken)
public TokenIdentityConfig(byte[] token)
public String getTokenEncoded()
public byte[] getToken()
public TokenEncoding getEncoding()
public ICredentialsFactory asCredentialsFactory(ClassLoader cl)
IdentityConfig
ICredentialsFactory
instance.asCredentialsFactory
in interface IdentityConfig
cl
- class loader to be used if the credentials factory class has to be constructed.ICredentialsFactory
instancepublic IdentityConfig copy()
IdentityConfig
copy
in interface IdentityConfig
Copyright © 2020 Hazelcast, Inc.. All rights reserved.