All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalecube.services.auth.AllowedRole Maven / Gradle / Ivy

The newest version!
package io.scalecube.services.auth;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.TYPE})
@Repeatable(AllowedRoles.class)
public @interface AllowedRole {

  /**
   * Role name.
   *
   * @return role name
   */
  String name();

  /**
   * Allowed permissions.
   *
   * @return permissions
   */
  String[] permissions();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy