Module datarush.commons
Interface ProcessSubjectProvider
- All Known Implementing Classes:
KerberosSubjectProvider
public interface ProcessSubjectProvider
Provides a mechanism for acquiring process-level authentication credentials.
The subject produced can be then be used as needed in contexts requiring
authenticated access.
-
Method Summary
Modifier and TypeMethodDescriptionaccquireCredentials(ModuleConfiguration moduleConfig, ProcessAuthenticationSettings config) Creates a subject based on the authentication settings provided.
-
Method Details
-
accquireCredentials
Subject accquireCredentials(ModuleConfiguration moduleConfig, ProcessAuthenticationSettings config) throws Exception Creates a subject based on the authentication settings provided. It is not strictly necessary to return aSubject; this can be used to authenticate for other purposes.- Parameters:
config- authentication settings for acquiring credentials- Returns:
- the authenticated subject. A value of
nullis permitted, in which case it is ignored. - Throws:
Exception
-