public class Authenticator extends Object
| Constructor and Description |
|---|
Authenticator(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAdminName()
Get the administrative username
|
String |
getAdminPass()
Get the administrative password
|
boolean |
isAdministrator(AuthContext ctx)
Check if the given credentials allow administrative access
|
boolean |
isAuthorizedForBucket(AuthContext ctx,
Bucket bucket)
Determine if the given credentials allow access to the bucket
|
public boolean isAuthorizedForBucket(AuthContext ctx, Bucket bucket)
ctx - The credentialsbucket - The bucket to check againstpublic boolean isAdministrator(AuthContext ctx)
ctx - The credentials to checkpublic String getAdminName()
public String getAdminPass()
Copyright © 2017. All rights reserved.