public class AppPrincipal extends Object implements ExtendedPrincipal
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 and Description |
|---|
AppPrincipal(String appKey,
String appRole)
AppPrincipal constructor. |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
boolean |
hasRole(String role) |
boolean |
implies(Subject subject) |
public AppPrincipal(String appKey, String appRole)
AppPrincipal constructor.appKey - mandatory, appKey of the application that is now authenticated.appRole - optionally, the "role" of the app as String. Mostly to use jsr250 @RolesAllowed.Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.