Debian Codegraph @

ssl-proxies/src/main/java/org/globus/gsi/proxy/IgnoreProxyPolicyHandler.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 java.security.cert.CertPathValidatorException;
18 import java.security.cert.CertPath;
19
20 import org.globus.gsi.proxy.ext.ProxyCertInfo;
21
22 import org.apache.commons.logging.Log;
23 import org.apache.commons.logging.LogFactory;
24
25 /**
26 * A simple restricted proxy policy handler that logs the
27 * proxy policy language oid. It can be used for debugging purposes.
28 */
29 public class IgnoreProxyPolicyHandler implements ProxyPolicyHandler {
30
31 private static Log logger =
32 LogFactory.getLog(IgnoreProxyPolicyHandler.class.getName());
33
34 public void validate(ProxyCertInfo proxyCertInfo,
35 CertPath certPath,
36 int index)
37 throws CertPathValidatorException {
38 logger.info("ProxyPolicy ignored: " + proxyCertInfo.getProxyPolicy().getPolicyLanguage().getId());
39 }
40
41 }