Class AbstractHadoopAutoCreds

    • Constructor Detail

      • AbstractHadoopAutoCreds

        public AbstractHadoopAutoCreds()
    • Method Detail

      • populateSubject

        public void populateSubject​(Subject subject,
                                    Map<String,​String> credentials)
        Called to initially populate the subject on the worker side with credentials passed in.
        Specified by:
        populateSubject in interface IAutoCredentials
        Parameters:
        subject - the subject to optionally put credentials in.
        credentials - the credentials to be used.
      • updateSubject

        public void updateSubject​(Subject subject,
                                  Map<String,​String> credentials)
        Called to update the subject on the worker side when new credentials are recieved. This means that populateSubject has already been called on this subject.
        Specified by:
        updateSubject in interface IAutoCredentials
        Parameters:
        subject - the subject to optionally put credentials in.
        credentials - the credentials to be used.
      • getCredentials

        public Set<org.apache.commons.math3.util.Pair<String,​org.apache.hadoop.security.Credentials>> getCredentials​(Map<String,​String> credentials)
      • doPrepare

        protected abstract void doPrepare​(Map<String,​Object> topoConf)
        Prepare the plugin.
        Parameters:
        topoConf - the topology conf
      • getConfigKeyString

        protected abstract String getConfigKeyString()
        The lookup key for the config key string.
        Returns:
        the config key string