Class ResolverTestRequest

java.lang.Object
net.shibboleth.idp.profile.impl.ResolverTestRequest

@ThreadSafe public class ResolverTestRequest extends Object
Object representing a request to run the attribute resolution and filtering components.

This abstracts the parameters used to populate the context tree and query attributes for a subject, optionally on behalf of a specific requester for a specific protocol.

  • Field Details

    • principal

      @Nonnull @NotEmpty private final String principal
      The name of the subject.
    • requesterId

      @Nonnull @NotEmpty private final String requesterId
      The ID of the requester.
    • acsIndex

      @Nullable private final Integer acsIndex
      The <AttributeConsumingService> index into metadata.
    • protocol

      @Nullable private final String protocol
      Protocol identifier to simulate a response for.
  • Constructor Details

    • ResolverTestRequest

      public ResolverTestRequest(@Nonnull @NotEmpty String princ, @Nullable String requester, @Nullable Integer index, @Nullable String prot)
      Constructor.
      Parameters:
      princ - name of subject
      requester - ID of requester
      index - <AttributeConsumingService> index
      prot - protocol ID
  • Method Details

    • getPrincipal

      @Nonnull @NotEmpty public String getPrincipal()
      Get the name of the subject.
      Returns:
      name of the subject
    • getRequesterId

      @Nonnull @NotEmpty public String getRequesterId()
      Get the ID of the requesting relying party.
      Returns:
      ID of the requesting relying party
    • getAttributeConsumingServiceIndex

      @Nullable public Integer getAttributeConsumingServiceIndex()
      Get the <AttributeConsumingService> index into metadata to apply.
      Returns:
      <AttributeConsumingService> index into metadata, or null
    • getProtocol

      @Nullable public String getProtocol()
      Get the protocol to apply to the results.
      Returns:
      protocol to apply to the results
    • toString

      public String toString()
      Overrides:
      toString in class Object