Package org.gbif.api.model.common
Class AppPrincipal
- java.lang.Object
-
- org.gbif.api.model.common.AppPrincipal
-
- All Implemented Interfaces:
Principal
,ExtendedPrincipal
public class AppPrincipal extends Object implements ExtendedPrincipal
Similar toGbifUserPrincipal
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 Summary
Constructors Constructor Description AppPrincipal(String appKey, String appRole)
AppPrincipal
constructor.
-
-
-
Constructor Detail
-
AppPrincipal
public AppPrincipal(String appKey, String appRole)
AppPrincipal
constructor.- Parameters:
appKey
- mandatory, appKey of the application that is now authenticated.appRole
- optionally, the "role" of the app asString
. Mostly to use jsr250 @RolesAllowed.
-
-