Class HealthCheckAuthorization

  • All Implemented Interfaces:
    org.osgi.service.useradmin.Authorization

    public class HealthCheckAuthorization
    extends Object
    implements org.osgi.service.useradmin.Authorization
    A simple implementation of the Authorization interface (usually provided by UserAdmin).
    • Constructor Detail

      • HealthCheckAuthorization

        public HealthCheckAuthorization​(String name,
                                        String[] roles)
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in interface org.osgi.service.useradmin.Authorization
      • hasRole

        public boolean hasRole​(String role)
        Specified by:
        hasRole in interface org.osgi.service.useradmin.Authorization
      • getRoles

        public String[] getRoles()
        Specified by:
        getRoles in interface org.osgi.service.useradmin.Authorization