public class KerberosAuthenticator extends Object implements Authenticator
Constructor and Description |
---|
KerberosAuthenticator() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateUser(String principal,
AuthenticationToken token) |
void |
changePassword(String principal,
AuthenticationToken token) |
void |
createUser(String principal,
AuthenticationToken token)
Creates a user with no initial permissions whatsoever
|
void |
dropUser(String user) |
Set<Class<? extends AuthenticationToken>> |
getSupportedTokenTypes() |
void |
initialize(ServerContext context,
boolean initialize) |
void |
initializeSecurity(String principal,
byte[] token) |
Set<String> |
listUsers() |
boolean |
userExists(String user)
Checks if a user exists
|
boolean |
validSecurityHandlers() |
boolean |
validTokenClass(String tokenClass)
Returns true if the given token is appropriate for this Authenticator
|
public void initialize(ServerContext context, boolean initialize)
initialize
in interface Authenticator
public boolean validSecurityHandlers()
validSecurityHandlers
in interface Authenticator
public void initializeSecurity(String principal, byte[] token)
initializeSecurity
in interface Authenticator
public boolean authenticateUser(String principal, AuthenticationToken token) throws AccumuloSecurityException
authenticateUser
in interface Authenticator
AccumuloSecurityException
public Set<String> listUsers()
listUsers
in interface Authenticator
public void createUser(String principal, AuthenticationToken token) throws AccumuloSecurityException
Authenticator
createUser
in interface Authenticator
AccumuloSecurityException
public void dropUser(String user) throws AccumuloSecurityException
dropUser
in interface Authenticator
AccumuloSecurityException
public void changePassword(String principal, AuthenticationToken token)
changePassword
in interface Authenticator
public boolean userExists(String user)
Authenticator
userExists
in interface Authenticator
public Set<Class<? extends AuthenticationToken>> getSupportedTokenTypes()
getSupportedTokenTypes
in interface Authenticator
public boolean validTokenClass(String tokenClass)
Authenticator
validTokenClass
in interface Authenticator
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.