Package org.apache.storm.security.auth
Interface IAutoCredentials
- All Known Implementing Classes:
AbstractHadoopAutoCreds
,AutoHBase
,AutoHDFS
,AutoHive
,AutoSSL
,AutoTGT
public interface IAutoCredentials
Provides a way to automatically push credentials to a topology and to retrieve them in the worker.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
void
updateSubject
(Subject subject, Map<String, String> credentials) Called to update the subject on the worker side when new credentials are recieved.
-
Method Details
-
prepare
-
populateCredentials
Called to populate the credentials on the client side.- Parameters:
credentials
- the credentials to be populated.
-
populateSubject
Called to initially populate the subject on the worker side with credentials passed in.- Parameters:
subject
- the subject to optionally put credentials in.credentials
- the credentials to be used.
-
updateSubject
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.- Parameters:
subject
- the subject to optionally put credentials in.credentials
- the credentials to be used.
-