Package org.gbif.api.model.common
Class AppPrincipal
java.lang.Object
org.gbif.api.model.common.AppPrincipal
- All Implemented Interfaces:
Principal,ExtendedPrincipal
Similar to
GbifUserPrincipal but represents an application instead of a user.
The appKey is used as the unique account name and is exposed as the principal name.-
Constructor Details
-
AppPrincipal
AppPrincipalconstructor.- Parameters:
appKey- mandatory, appKey of the application that is now authenticated.appRole- optionally, the "role" of the app asString. Mostly to use jsr250 @RolesAllowed.
-
-
Method Details