public class AuthManager
extends java.lang.Object
| Constructor and Description |
|---|
AuthManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerformClusterActions(int clusterActions,
com.mapr.fs.proto.Security.CredentialsMsg creds,
com.mapr.cliframework.base.CommandOutput.OutputHierarchy out) |
boolean |
canPerformClusterActions(java.lang.String clusterName,
int clusterActions,
com.mapr.fs.proto.Security.CredentialsMsg creds,
com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
Checks if a user is authorized to perform specific cluster actions.
|
boolean |
canPerformVolumeAction(java.lang.String volumeName,
com.mapr.fs.cldb.proto.CLDBProto.VolumeProperties volProps,
int volumeActions,
com.mapr.fs.proto.Security.CredentialsMsg creds,
com.mapr.cliframework.base.CommandOutput.OutputHierarchy out) |
boolean |
canPerformVolumeAction(java.lang.String clusterName,
java.lang.String volumeName,
com.mapr.fs.cldb.proto.CLDBProto.VolumeProperties volProps,
int volumeActions,
com.mapr.fs.proto.Security.CredentialsMsg creds,
com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
Checks if a client is authorized to perform actions on a certain Volume.
|
static AuthManager |
getInstance() |
public static AuthManager getInstance()
public boolean canPerformVolumeAction(java.lang.String clusterName,
java.lang.String volumeName,
com.mapr.fs.cldb.proto.CLDBProto.VolumeProperties volProps,
int volumeActions,
com.mapr.fs.proto.Security.CredentialsMsg creds,
com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
throws com.mapr.cliframework.base.CLIProcessingException
creds - Credentials of the user performing the ActionsvolumeActions - List of volume actionsvolProps - VolumeProperties structure of the VolumevolumeName - Name of the Volumeout - OutputHierarchy object to record error messagescom.mapr.cliframework.base.CLIProcessingExceptionpublic boolean canPerformVolumeAction(java.lang.String volumeName,
com.mapr.fs.cldb.proto.CLDBProto.VolumeProperties volProps,
int volumeActions,
com.mapr.fs.proto.Security.CredentialsMsg creds,
com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingExceptionpublic boolean canPerformClusterActions(java.lang.String clusterName,
int clusterActions,
com.mapr.fs.proto.Security.CredentialsMsg creds,
com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
throws com.mapr.cliframework.base.CLIProcessingException
creds - Credentials of the user performing the action.clusterActions - List of cluster actions the user wishes to performout - OutputHierarchy object to record error messagescom.mapr.cliframework.base.CLIProcessingExceptionpublic boolean canPerformClusterActions(int clusterActions,
com.mapr.fs.proto.Security.CredentialsMsg creds,
com.mapr.cliframework.base.CommandOutput.OutputHierarchy out)
throws com.mapr.cliframework.base.CLIProcessingException
com.mapr.cliframework.base.CLIProcessingException