org.opensaml.security.httpclient.HttpClientSecurityConstants Maven / Gradle / Ivy
/*
* Licensed to the University Corporation for Advanced Internet Development,
* Inc. (UCAID) under one or more contributor license agreements. See the
* NOTICE file distributed with this work for additional information regarding
* copyright ownership. The UCAID licenses this file to You under the Apache
* License, Version 2.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opensaml.security.httpclient;
/**
* Security-related constants for use with Apache HttpClient.
*/
public final class HttpClientSecurityConstants {
/** Context key for a trust engine instance supplied by an HttpClient caller.
* Value must be an instance of {@link TrustEngine super X509Credential>}. */
public static final String CONTEXT_KEY_TRUST_ENGINE = "opensaml.TrustEngine";
/** Context key for a criteria set instance supplied by an HttpClient caller.
* Value must be an instance of {@link net.shibboleth.utilities.java.support.resolver.CriteriaSet}. */
public static final String CONTEXT_KEY_CRITERIA_SET = "opensaml.CriteriaSet";
/** Context key for a server TLS credential evaluation result, populated by specialized instances
* of HttpClient socket factories. Type will be a {@link Boolean}. */
public static final String CONTEXT_KEY_SERVER_TLS_CREDENTIAL_TRUSTED = "opensaml.ServerTLSCredentialTrusted";
/** Constructor. */
private HttpClientSecurityConstants() {}
}