Class DefaultAttributeDefinition

java.lang.Object
org.apereo.cas.authentication.attribute.DefaultAttributeDefinition
All Implemented Interfaces:
Serializable, Comparable<org.apereo.cas.authentication.attribute.AttributeDefinition>, org.apereo.cas.authentication.attribute.AttributeDefinition

public class DefaultAttributeDefinition extends Object implements org.apereo.cas.authentication.attribute.AttributeDefinition
Since:
6.2.0
See Also:
  • Constructor Details

    • DefaultAttributeDefinition

      public DefaultAttributeDefinition(String key, String name, boolean scoped, boolean encrypted, String attribute, String patternFormat, String script, String canonicalizationMode, Map<String,String> patterns, String flattened, boolean singleValue)
    • DefaultAttributeDefinition

      public DefaultAttributeDefinition()
  • Method Details

    • compareTo

      public int compareTo(@Nonnull org.apereo.cas.authentication.attribute.AttributeDefinition definition)
      Specified by:
      compareTo in interface Comparable<org.apereo.cas.authentication.attribute.AttributeDefinition>
    • resolveAttributeValues

      public List<Object> resolveAttributeValues(org.apereo.cas.authentication.attribute.AttributeDefinitionResolutionContext context) throws Throwable
      Specified by:
      resolveAttributeValues in interface org.apereo.cas.authentication.attribute.AttributeDefinition
      Throws:
      Throwable
    • builder

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getKey

      public String getKey()
      Specified by:
      getKey in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • getName

      public String getName()
      Specified by:
      getName in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • isScoped

      public boolean isScoped()
      Specified by:
      isScoped in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • isEncrypted

      public boolean isEncrypted()
      Specified by:
      isEncrypted in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • getAttribute

      public String getAttribute()
      Specified by:
      getAttribute in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • getPatternFormat

      public String getPatternFormat()
      Specified by:
      getPatternFormat in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • getScript

      public String getScript()
      Specified by:
      getScript in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • getCanonicalizationMode

      public String getCanonicalizationMode()
      Specified by:
      getCanonicalizationMode in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • getPatterns

      public Map<String,String> getPatterns()
      Specified by:
      getPatterns in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • getFlattened

      public String getFlattened()
      Specified by:
      getFlattened in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • isSingleValue

      public boolean isSingleValue()
      Specified by:
      isSingleValue in interface org.apereo.cas.authentication.attribute.AttributeDefinition
    • setKey

      public void setKey(String key)
    • setName

      public void setName(String name)
    • setScoped

      public void setScoped(boolean scoped)
    • setEncrypted

      public void setEncrypted(boolean encrypted)
    • setAttribute

      public void setAttribute(String attribute)
    • setPatternFormat

      public void setPatternFormat(String patternFormat)
    • setScript

      public void setScript(String script)
    • setCanonicalizationMode

      public void setCanonicalizationMode(String canonicalizationMode)
    • setPatterns

      public void setPatterns(Map<String,String> patterns)
    • setFlattened

      public void setFlattened(String flattened)
    • setSingleValue

      public void setSingleValue(boolean singleValue)
    • withKey

      public DefaultAttributeDefinition withKey(String key)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withName

      public DefaultAttributeDefinition withName(String name)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withScoped

      public DefaultAttributeDefinition withScoped(boolean scoped)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withEncrypted

      public DefaultAttributeDefinition withEncrypted(boolean encrypted)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withAttribute

      public DefaultAttributeDefinition withAttribute(String attribute)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPatternFormat

      public DefaultAttributeDefinition withPatternFormat(String patternFormat)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withScript

      public DefaultAttributeDefinition withScript(String script)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCanonicalizationMode

      public DefaultAttributeDefinition withCanonicalizationMode(String canonicalizationMode)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withPatterns

      public DefaultAttributeDefinition withPatterns(Map<String,String> patterns)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withFlattened

      public DefaultAttributeDefinition withFlattened(String flattened)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSingleValue

      public DefaultAttributeDefinition withSingleValue(boolean singleValue)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).