Package kalix.javasdk
Interface Principals
public interface Principals
The principals associated with a request.
-
Method Summary
Modifier and TypeMethodDescriptionget()
Get the principals associated with this request.Get the service that invoked this call, if any.boolean
Whether this request was from any service in the local project.boolean
Whether this request is a backoffice request.boolean
Whether this request was from the internet.boolean
isLocalService
(String name) Whether this request was from a service in the local project.boolean
isSelf()
Whether this is a self request.
-
Method Details
-
isInternet
boolean isInternet()Whether this request was from the internet. -
isSelf
boolean isSelf()Whether this is a self request. -
isBackoffice
boolean isBackoffice()Whether this request is a backoffice request. -
isLocalService
Whether this request was from a service in the local project.- Parameters:
name
- The name of the service.
-
isAnyLocalService
boolean isAnyLocalService()Whether this request was from any service in the local project. -
getLocalService
Get the service that invoked this call, if any. -
get
Collection<Principal> get()Get the principals associated with this request.
-