KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > transport > tcp > StubX509Certificate


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more
4  * contributor license agreements. See the NOTICE file distributed with
5  * this work for additional information regarding copyright ownership.
6  * The ASF licenses this file to You under the Apache License, Version 2.0
7  * (the "License"); you may not use this file except in compliance with
8  * the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.apache.activemq.transport.tcp;
20
21 import java.math.BigInteger JavaDoc;
22 import java.security.Principal JavaDoc;
23 import java.security.PublicKey JavaDoc;
24 import java.util.Date JavaDoc;
25 import java.util.Set JavaDoc;
26
27 import java.security.cert.X509Certificate JavaDoc;
28
29 public class StubX509Certificate extends X509Certificate JavaDoc {
30     public StubX509Certificate(Principal JavaDoc id) {
31         this.id = id;
32     }
33     
34     public Principal JavaDoc getSubjectDN() {
35         return this.id;
36     }
37     
38     private final Principal JavaDoc id;
39     
40     // --- Stubbed Methods ---
41
public void checkValidity() {
42     // TODO Auto-generated method stub
43

44     }
45     
46     public void checkValidity(Date JavaDoc arg0) {
47     // TODO Auto-generated method stub
48

49     }
50     
51     public int getVersion() {
52     // TODO Auto-generated method stub
53
return 0;
54     }
55     
56     public BigInteger JavaDoc getSerialNumber() {
57     // TODO Auto-generated method stub
58
return null;
59     }
60     
61     public Principal JavaDoc getIssuerDN() {
62     // TODO Auto-generated method stub
63
return null;
64     }
65     
66     public Date JavaDoc getNotBefore() {
67     // TODO Auto-generated method stub
68
return null;
69     }
70     
71     public Date JavaDoc getNotAfter() {
72     // TODO Auto-generated method stub
73
return null;
74     }
75     
76     public byte[] getTBSCertificate() {
77     // TODO Auto-generated method stub
78
return null;
79     }
80     
81     public byte[] getSignature() {
82     // TODO Auto-generated method stub
83
return null;
84     }
85     
86     public String JavaDoc getSigAlgName() {
87     // TODO Auto-generated method stub
88
return null;
89     }
90     
91     public String JavaDoc getSigAlgOID() {
92     // TODO Auto-generated method stub
93
return null;
94     }
95     
96     public byte[] getSigAlgParams() {
97     // TODO Auto-generated method stub
98
return null;
99     }
100     
101     public boolean[] getIssuerUniqueID() {
102     // TODO Auto-generated method stub
103
return null;
104     }
105     
106     public boolean[] getSubjectUniqueID() {
107     // TODO Auto-generated method stub
108
return null;
109     }
110     
111     public boolean[] getKeyUsage() {
112     // TODO Auto-generated method stub
113
return null;
114     }
115     
116     public int getBasicConstraints() {
117     // TODO Auto-generated method stub
118
return 0;
119     }
120     
121     public byte[] getEncoded() {
122     // TODO Auto-generated method stub
123
return null;
124     }
125     
126     public void verify(PublicKey JavaDoc arg0) {
127     // TODO Auto-generated method stub
128

129     }
130     
131     public void verify(PublicKey JavaDoc arg0, String JavaDoc arg1) {
132     // TODO Auto-generated method stub
133

134     }
135     
136     public String JavaDoc toString() {
137     // TODO Auto-generated method stub
138
return null;
139     }
140     
141     public PublicKey JavaDoc getPublicKey() {
142     // TODO Auto-generated method stub
143
return null;
144     }
145     
146     public boolean hasUnsupportedCriticalExtension() {
147     // TODO Auto-generated method stub
148
return false;
149     }
150     
151     public Set JavaDoc getCriticalExtensionOIDs() {
152     // TODO Auto-generated method stub
153
return null;
154     }
155     
156     public Set JavaDoc getNonCriticalExtensionOIDs() {
157     // TODO Auto-generated method stub
158
return null;
159     }
160     
161     public byte[] getExtensionValue(String JavaDoc arg0) {
162     // TODO Auto-generated method stub
163
return null;
164     }
165
166 }
167
Popular Tags