@UESComponent public interface UESAuthenticationService
Modifier and Type | Method and Description |
---|---|
void |
authenticate(UESAuthenticationToken aToken) |
java.lang.String |
getConsumerId()
Returns consumer ID (ID of service or tool which invoked authentication, e.g. scripting console, external UES
service etc.).
|
Principal |
getPrincipal()
Returns principal of authenticated user.
|
java.util.List<Principal> |
getPrincipalChain()
Returns chain of all authenticated principals.
|
boolean |
isAuthenticated()
Returns authentication state.
|
aToken
- The authentication token with filled credentials used for user authentication.UESAuthenticationServiceRTException
- When user can not be authenticated.UESAccountService#isAuthenticated
).UESAuthenticationServiceRTException
- In case authentication is not processedUESAuthenticationService.executeAs(String, UESCallable)
(each
nested call adds another principal to chain). Typically there should be from one to two elements in list. In case
authentication is not processed at all, exception is thrown (to check if calling of method is safe use
UESAccountService#isAuthenticated
).UESAuthenticationServiceRTException
- In case authentication is not processedUESAccountService#isAuthenticated
).UESAuthenticationServiceRTException