Package org.opendaylight.aaa.api
Interface AuthenticationService
- All Known Implementing Classes:
AuthenticationManager
public interface AuthenticationService
Authentication service to provide authentication context.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clear the current security context.get()
Retrieve the current security context, or null if none exists.boolean
Checks to see if authentication is enabled.void
set
(Authentication auth) Set the current security context.
-
Method Details
-
get
Authentication get()Retrieve the current security context, or null if none exists.- Returns:
- security context
-
set
Set the current security context. OnlyTokenAuth
should set security context based on the authentication result.- Parameters:
auth
- security context
-
clear
void clear()Clear the current security context. -
isAuthEnabled
boolean isAuthEnabled()Checks to see if authentication is enabled.- Returns:
- true if it is, false otherwise
-