public class AutoTGT extends Object implements IAutoCredentials, ICredentialsRenewer
| Modifier and Type | Field and Description |
|---|---|
protected static AtomicReference<KerberosTicket> |
kerbTicket |
| Constructor and Description |
|---|
AutoTGT() |
| Modifier and Type | Method and Description |
|---|---|
static KerberosTicket |
getTGT(Map<String,String> credentials) |
static void |
main(String[] args) |
void |
populateCredentials(Map<String,String> credentials)
Called to populate the credentials on the client side.
|
void |
populateSubject(Subject subject,
Map<String,String> credentials)
Called to initially populate the subject on the worker side with credentials passed in.
|
void |
prepare(Map conf)
Called when initializing the service.
|
void |
renew(Map<String,String> credentials,
Map topologyConf)
Renew any credentials that need to be renewed.
|
static void |
saveTGT(KerberosTicket tgt,
Map<String,String> credentials) |
void |
updateSubject(Subject subject,
Map<String,String> credentials)
Called to update the subject on the worker side when new credentials are recieved.
|
protected static AtomicReference<KerberosTicket> kerbTicket
public void prepare(Map conf)
ICredentialsRenewerprepare in interface IAutoCredentialsprepare in interface ICredentialsRenewerconf - the storm cluster configuration.public void populateCredentials(Map<String,String> credentials)
IAutoCredentialspopulateCredentials in interface IAutoCredentialscredentials - the credentials to be populated.public static void saveTGT(KerberosTicket tgt, Map<String,String> credentials)
public static KerberosTicket getTGT(Map<String,String> credentials)
public void updateSubject(Subject subject, Map<String,String> credentials)
IAutoCredentialsupdateSubject in interface IAutoCredentialssubject - the subject to optionally put credentials in.credentials - the credentials to be used.public void populateSubject(Subject subject, Map<String,String> credentials)
IAutoCredentialspopulateSubject in interface IAutoCredentialssubject - the subject to optionally put credentials in.credentials - the credentials to be used.public void renew(Map<String,String> credentials, Map topologyConf)
ICredentialsRenewerrenew in interface ICredentialsRenewercredentials - the credentials that may have something to renew.topologyConf - topology configuration.Copyright © 2015. All rights reserved.