Annotation Type Secure
-
@Retention(RUNTIME) @Qualifier @Inherited @Target(TYPE) public @interface Secure
Qualifier used to enable a security check at the point of service injection or lookup. Security Services, which are to protected against unqualified injection/look-up, should be annotated as something below e.g., @Secure(accessPermissionName = "security/service// ") Any caller which injects or looks up the protected security service, the caller's jar/class should be granted the following policy e.g., grant codeBase "file: / / " { permission org.glassfish.security.services.common.SecureServiceAccessPermission "security/service/ / "; };
-
-
Field Summary
Fields Modifier and Type Fields Description static String
DEFAULT_PERM_NAME
static String
NAME
static String
PERMISSION_NAME_PREFIX
-
Required Element Summary
Required Elements Modifier and Type Required Element Description String
accessPermissionName
the permission name to be protected if the accessPermissionName is not specified, a default value of "security/service/default" is used.
-
-
-
Field Detail
-
NAME
static final String NAME
-
-
-
PERMISSION_NAME_PREFIX
static final String PERMISSION_NAME_PREFIX
-
-
-
DEFAULT_PERM_NAME
static final String DEFAULT_PERM_NAME
-
-
Element Detail
-
accessPermissionName
@Metadata("accessPermissionName") String accessPermissionName
the permission name to be protected if the accessPermissionName is not specified, a default value of "security/service/default" is used.- Returns:
- name of the protected HK2 service
-
-