01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: /**
19: * @author Alexander Y. Kleymenov
20: * @version $Revision$
21: */package org.apache.harmony.security.provider.cert;
22:
23: import java.security.AccessController;
24: import java.security.Provider;
25:
26: import org.apache.harmony.security.internal.nls.Messages;
27:
28: /**
29: * Master class (provider) for X509 Certificate Factory
30: * Implementation.
31: */
32: public final class DRLCertFactory extends Provider {
33:
34: /**
35: * @serial
36: */
37: private static final long serialVersionUID = -7269650779605195879L;
38:
39: /**
40: * Constructs the instance of the certificate factory provider.
41: */
42: public DRLCertFactory() {
43: // specification of the provider name, version, and description.
44: // security.151=Certificate Factory supports CRLs and Certificates in (PEM) ASN.1 DER encoded form, and Certification Paths in PkiPath and PKCS7 formats.
45: super ("DRLCertFactory", 1.0, Messages.getString("security.151")); //$NON-NLS-1$ //$NON-NLS-2$
46:
47: AccessController
48: .doPrivileged(new java.security.PrivilegedAction<Void>() {
49: public Void run() {
50: // register the service
51: put("CertificateFactory.X509", //$NON-NLS-1$
52: "org.apache.harmony.security.provider.cert.X509CertFactoryImpl"); //$NON-NLS-1$
53: // mapping the alias
54: put(
55: "Alg.Alias.CertificateFactory.X.509", "X509"); //$NON-NLS-1$ //$NON-NLS-2$
56: return null;
57: }
58: });
59: }
60: }
|