Class ScriptedIdPAttributeImpl

java.lang.Object
net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedIdPAttributeImpl
All Implemented Interfaces:
ScriptedIdPAttribute

public class ScriptedIdPAttributeImpl extends Object implements ScriptedIdPAttribute
An encapsulated Attribute suitable for handing to scripts. This handles some of the cumbersome issues associated with IdPAttribute and also a lot of the V2 backwards compatibility stuff.

NOTE, the java signature for this class may and will change on minor version changes. However the Scripting interface will remain the same (methods will never be removed).

  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Logger.
    • encapsulatedAttribute

      @Nonnull private final IdPAttribute encapsulatedAttribute
      The IdPAttribute we are encapsulating.
    • calledGetNativeAttribute

      private boolean calledGetNativeAttribute
      has method getNativeAttribute() be called.
    • attributeValues

      private List<Object> attributeValues
      All the StringAttributeValue, but as strings.

      All other attributes as their native representation. If null then the getValues() method has not been called.

    • logPrefix

      @Nonnull private final String logPrefix
      The prefix for logging. Derived from the definition's logPrefix and the attribute ID.
  • Constructor Details

    • ScriptedIdPAttributeImpl

      public ScriptedIdPAttributeImpl(@Nonnull IdPAttribute attribute, @Nullable String prefix)
      Constructor.
      Parameters:
      attribute - the attribute we are encapsulating.
      prefix - the log path from the definition.
  • Method Details