Class ExecutableQueryBuilder.StandardExecutableQuery

java.lang.Object
net.shibboleth.idp.attribute.resolver.dc.saml.impl.ExecutableQueryBuilder.StandardExecutableQuery
All Implemented Interfaces:
ExecutableSearch, ExecutableQuery
Enclosing class:
ExecutableQueryBuilder

private final class ExecutableQueryBuilder.StandardExecutableQuery extends Object implements ExecutableQuery
Standard implementation of the ExecutableQuery.
  • Field Details

    • authorityEntityID

      @Nonnull private final String authorityEntityID
      Attribute authority entityID.
    • authorityRoleDescriptor

      @Nonnull private final AttributeAuthorityDescriptor authorityRoleDescriptor
      Attribute authority role descriptor.
    • authorityEndpoint

      @Nonnull private final String authorityEndpoint
      Attribute authority endpoint.
    • opContext

      @Nonnull private final InOutOperationContext opContext
      SOAP client context.
    • resolutionContext

      @Nonnull private final AttributeResolutionContext resolutionContext
      Attribute resolution context.
    • dependencyAttributes

      @Nonnull private final Map<String,List<IdPAttributeValue>> dependencyAttributes
      Dependency attributes.
    • log

      @Nonnull private final org.slf4j.Logger log
      Logger.
  • Constructor Details

  • Method Details

    • getResultCacheKey

      @Nullable public String getResultCacheKey()
      Gets a key that uniquely identifies this object and may be used as a key in a result cache.

      If a null is returned, no caching will be done.

      Specified by:
      getResultCacheKey in interface ExecutableSearch
      Returns:
      the result cache key
    • toString

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

      @Nonnull public ResponseData execute(@Nonnull SOAPClient soapClient) throws SAMLException, SOAPException, SecurityException
      Executes the query and returns the results.
      Specified by:
      execute in interface ExecutableQuery
      Parameters:
      soapClient - SOAP client to process the query
      Returns:
      the result of the executed query
      Throws:
      SAMLException - if there is a SAML error during resolution
      SOAPException - if there is a SOAP error during resolution
      SecurityException - if there there is a security-related error during resolution
    • logContextData

      private void logContextData(@Nonnull InOutOperationContext opContext)
      Log SOAP client context data.
      Parameters:
      opContext - the SOAP client context
    • validateResponse

      private void validateResponse(@Nonnull Response response) throws SAMLException
      Validate the response.
      Parameters:
      response - the response to validate
      Throws:
      SAMLException - if response is not valid