Class TokenProvider
java.lang.Object
org.apache.hadoop.hbase.security.token.TokenProvider
- All Implemented Interfaces:
- Coprocessor,- RegionCoprocessor,- org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface
@Private
public class TokenProvider
extends Object
implements org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface, RegionCoprocessor
Provides a service for obtaining authentication tokens via the 
AuthenticationProtos
 AuthenticationService coprocessor service.- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.hadoop.hbase.CoprocessorCoprocessor.State
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate AuthenticationTokenSecretManagerFields inherited from interface org.apache.hadoop.hbase.CoprocessorPRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidgetAuthenticationToken(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenRequest request, org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenResponse> done) Iterable<org.apache.hbase.thirdparty.com.google.protobuf.Service>Coprocessor endpoints providing protobuf services should override this method.private booleanisAllowedDelegationTokenOp(org.apache.hadoop.security.UserGroupInformation ugi) voidCalled by theCoprocessorEnvironmentduring it's own startup to initialize the coprocessor.voidCalled by theCoprocessorEnvironmentduring it's own shutdown to stop the coprocessor.voidwhoAmI(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.WhoAmIRequest request, org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.WhoAmIResponse> done) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.coprocessor.RegionCoprocessorgetBulkLoadObserver, getEndpointObserver, getRegionObserver
- 
Field Details- 
LOG
- 
secretManager
 
- 
- 
Constructor Details- 
TokenProviderpublic TokenProvider()
 
- 
- 
Method Details- 
startDescription copied from interface:CoprocessorCalled by theCoprocessorEnvironmentduring it's own startup to initialize the coprocessor.- Specified by:
- startin interface- Coprocessor
 
- 
stopDescription copied from interface:CoprocessorCalled by theCoprocessorEnvironmentduring it's own shutdown to stop the coprocessor.- Specified by:
- stopin interface- Coprocessor
- Throws:
- IOException
 
- 
isAllowedDelegationTokenOpprivate boolean isAllowedDelegationTokenOp(org.apache.hadoop.security.UserGroupInformation ugi) throws IOException - Parameters:
- ugi- A user group information.
- Returns:
- true if delegation token operation is allowed
- Throws:
- IOException
 
- 
getServicesDescription copied from interface:CoprocessorCoprocessor endpoints providing protobuf services should override this method.- Specified by:
- getServicesin interface- Coprocessor
- Returns:
- Iterable of Services or empty collection. Implementations should never return null.
 
- 
getAuthenticationTokenpublic void getAuthenticationToken(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenRequest request, org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.GetAuthenticationTokenResponse> done) - Specified by:
- getAuthenticationTokenin interface- org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface
 
- 
whoAmIpublic void whoAmI(org.apache.hbase.thirdparty.com.google.protobuf.RpcController controller, org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.WhoAmIRequest request, org.apache.hbase.thirdparty.com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.WhoAmIResponse> done) - Specified by:
- whoAmIin interface- org.apache.hadoop.hbase.shaded.protobuf.generated.AuthenticationProtos.AuthenticationService.Interface
 
 
-