public interface LoginModule
getEncodedCredentials(java.lang.String)
method is used to generate encoded credentials which are validated by the server.
Custom implementations of LoginModule
can be used by calling LoginManager.login(String, LoginModule)
.Modifier and Type | Method and Description |
---|---|
byte[] |
getEncodedCredentials(java.lang.String cacheName)
Gets a byte array representing credentials to be passed to server.
|
byte[] getEncodedCredentials(java.lang.String cacheName) throws NamedCacheSecurityException
cacheName
- The cache name for which to generate encoded credentials.NamedCacheSecurityException
- if generation of encoded credentials failed