Lines Matching defs:version
6 * under the terms of the GNU General Public License version 2 only, as
14 * version 2 for more details (a copy is included in the LICENSE file that
17 * You should have received a copy of the GNU General Public License version
36 * This class defines the version of the X509 Certificate.
59 public static final String IDENT = "x509.info.version";
63 public static final String NAME = "version";
67 int version = V1;
69 // Returns the version number.
71 return(version);
78 version = derVal.getInteger();
80 throw new IOException("X.509 version, bad format");
87 * sets the version to 0 (i.e. X.509 version 1).
90 version = V1;
94 * The constructor for this class for the required version.
96 * @param version the version for the certificate.
97 * @exception IOException if the version is not valid.
99 public CertificateVersion(int version) throws IOException {
101 // check that it is a valid version
102 if (version == V1 || version == V2 || version == V3)
103 this.version = version;
105 throw new IOException("X.509 Certificate version " +
106 version + " not supported.\n");
117 version = V1;
130 version = V1;
143 version = V1;
149 * Return the version number of the certificate.
152 return("Version: V" + (version+1));
163 if (version == V1) {
167 tmp.putInteger(version);
184 version = ((Integer)obj).intValue();
208 version = V1;
237 return(version - vers);