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 Summary
FieldsModifier and TypeFieldDescriptionprivate final StringAttribute authority endpoint.private final StringAttribute authority entityID.private final AttributeAuthorityDescriptorAttribute authority role descriptor.private final Map<String,List<IdPAttributeValue>> Dependency attributes.private final org.slf4j.LoggerLogger.private final InOutOperationContextSOAP client context.private final AttributeResolutionContextAttribute resolution context. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateStandardExecutableQuery(String entityID, AttributeAuthorityDescriptor roleDescriptor, String endpoint, InOutOperationContext clientContext, AttributeResolutionContext arc, Map<String, List<IdPAttributeValue>> dependencies) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionexecute(SOAPClient soapClient) Executes the query and returns the results.Gets a key that uniquely identifies this object and may be used as a key in a result cache.private voidlogContextData(InOutOperationContext opContext) Log SOAP client context data.toString()private voidvalidateResponse(Response response) Validate the response.
-
Field Details
-
authorityEntityID
Attribute authority entityID. -
authorityRoleDescriptor
Attribute authority role descriptor. -
authorityEndpoint
Attribute authority endpoint. -
opContext
SOAP client context. -
resolutionContext
Attribute resolution context. -
dependencyAttributes
Dependency attributes. -
log
@Nonnull private final org.slf4j.Logger logLogger.
-
-
Constructor Details
-
StandardExecutableQuery
private StandardExecutableQuery(@Nonnull String entityID, @Nonnull AttributeAuthorityDescriptor roleDescriptor, @Nonnull String endpoint, @Nonnull InOutOperationContext clientContext, @Nonnull AttributeResolutionContext arc, @Nonnull Map<String, List<IdPAttributeValue>> dependencies) Constructor.- Parameters:
entityID- Attribute authority entityIDroleDescriptor- Attribute authority role descriptorendpoint- Attribute authority endpoint.clientContext- SOAP client contextarc- Attribute resolution contextdependencies- dependency attributes
-
-
Method Details
-
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:
getResultCacheKeyin interfaceExecutableSearch- Returns:
- the result cache key
-
toString
-
execute
@Nonnull public ResponseData execute(@Nonnull SOAPClient soapClient) throws SAMLException, SOAPException, SecurityException Executes the query and returns the results.- Specified by:
executein interfaceExecutableQuery- Parameters:
soapClient- SOAP client to process the query- Returns:
- the result of the executed query
- Throws:
SAMLException- if there is a SAML error during resolutionSOAPException- if there is a SOAP error during resolutionSecurityException- if there there is a security-related error during resolution
-
logContextData
Log SOAP client context data.- Parameters:
opContext- the SOAP client context
-
validateResponse
Validate the response.- Parameters:
response- the response to validate- Throws:
SAMLException- if response is not valid
-