Package org.opendaylight.aaa.api
Interface AuthenticationService
-
- All Known Implementing Classes:
AuthenticationManager
public interface AuthenticationService
Authentication service to provide authentication context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
Clear the current security context.Authentication
get()
Retrieve the current security context, or null if none exists.boolean
isAuthEnabled()
Checks to see if authentication is enabled.void
set(Authentication auth)
Set the current security context.
-
-
-
Method Detail
-
get
Authentication get()
Retrieve the current security context, or null if none exists.- Returns:
- security context
-
set
void set(Authentication auth)
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
-
-