Class PolicySubject

    • Constructor Detail

      • PolicySubject

        public PolicySubject()
      • PolicySubject

        public PolicySubject​(String name,
                             String className,
                             Set<String> values,
                             boolean exclusive)
        Constructor.
        Parameters:
        name - Name of condition.
        className - Implementation class name.
        values - Values of this subject.
        exclusive - true to be exclusive.
    • Method Detail

      • getName

        public String getName()
        Returns name.
        Returns:
        name.
      • getClassName

        public String getClassName()
        Returns class name.
        Returns:
        class name.
      • getValues

        public Set<String> getValues()
        Returns values.
        Returns:
        values.
      • isExclusive

        public boolean isExclusive()
        Returns true if this is an exclusive subject.
        Returns:
        true if this is an exclusive subject.
      • isIdentity

        public boolean isIdentity()
        Returns true is this subject is an identity object.
        Specified by:
        isIdentity in interface EntitlementSubject
        Returns:
        true is this subject is an identity object.
      • getPolicySubject

        public Subject getPolicySubject()
                                 throws EntitlementException
        Constructs a legacy policy subject based on the information in this adapter.
        Returns:
        the legacy policy subject
        Throws:
        EntitlementException - if an error occurs constructing the subject.