Class Subject.Builder

  • Enclosing class:
    Subject

    public static class Subject.Builder
    extends java.lang.Object
    • Method Detail

      • apiGroup

        public Subject.Builder apiGroup​(java.lang.String apiGroup)
        APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
        Returns:
        this.
      • kind

        public Subject.Builder kind​(@NonNull
                                    @NonNull java.lang.String kind)
        Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
        Returns:
        this.
      • name

        public Subject.Builder name​(@NonNull
                                    @NonNull java.lang.String name)
        Name of the object being referenced.
        Returns:
        this.
      • namespace

        public Subject.Builder namespace​(java.lang.String namespace)
        Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
        Returns:
        this.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object