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 toGbifUserPrincipalbut 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)AppPrincipalconstructor.
-
-
-
Constructor Detail
-
AppPrincipal
public AppPrincipal(String appKey, String appRole)
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.
-
-