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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Subject
accquireCredentials(ModuleConfiguration moduleConfig, ProcessAuthenticationSettings config)
Creates a subject based on the authentication settings provided.
-
-
-
Method Detail
-
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
null
is permitted, in which case it is ignored. - Throws:
Exception
-
-