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 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