public class UserTokenAuthenticator extends Object implements ClientAuthenticator
ClientAuthenticator
that authenticates a user using a token.Constructor and Description |
---|
UserTokenAuthenticator(String user)
Deprecated.
since 3.1.1, use the constructor that takes both user and token arguments
|
UserTokenAuthenticator(String user,
String token)
Constructs an authenticator with the specified user and token.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
_processAuth(Map<String,Object> authData) |
String |
getToken() |
boolean |
hasNewToken()
Deprecated.
since 3.1.1, became useless since a new token cannot be retrieved with _processAuth.
|
Map<String,Object> |
initialAuthData() |
public UserTokenAuthenticator(String user, String token)
@Deprecated public UserTokenAuthenticator(String user)
public Map<String,Object> initialAuthData()
initialAuthData
in interface ClientAuthenticator
public Map<String,Object> _processAuth(Map<String,Object> authData)
_processAuth
in interface ClientAuthenticator
@Deprecated public boolean hasNewToken()
false
all the time.public String getToken()
Copyright © 2020. All rights reserved.