Debian Codegraph @

ssl-proxies/src/main/java/org/globus/gsi/proxy/ProxyPolicyHandler.java

raw
1 /*
2 * Copyright 1999-2010 University of Chicago
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
5 * compliance with the License. You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software distributed under the License is
10 * distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
11 * express or implied.
12 *
13 * See the License for the specific language governing permissions and limitations under the License.
14 */
15 package org.globus.gsi.proxy;
16
17 import org.globus.gsi.proxy.ext.ProxyCertInfo;
18
19 import java.security.cert.CertPath;
20 import java.security.cert.CertPathValidatorException;
21
22 /**
23 * A restricted proxy policy handler interface. All policy handlers must
24 * implement this interface.
25 */
26 public interface ProxyPolicyHandler {
27
28 /**
29 * @param proxyCertInfo the <code>ProxyCertInfo</code> extension found in
30 * the restricted proxy certificate.
31 * @param certPath the certificate path being validated.
32 * @param index the index of the certificate in the certPath that is
33 * being validated - the index of the restricted proxy
34 * certificate.
35 * @throws CertPathValidatorException if policy validation fails.
36 */
37 void validate(
38 ProxyCertInfo proxyCertInfo,
39 CertPath certPath,
40 int index)
41 throws CertPathValidatorException;
42 }