| java.lang.Object org.ejbca.util.CertTools org.ejbca.util.cert.QCStatementExtension
QCStatementExtension | public class QCStatementExtension extends CertTools (Code) | | A class for reading values from QC-statement extension.
author: Tomas Gustavsson version: $Id: QCStatementExtension.java,v 1.3 2008/01/10 14:42:18 anatom Exp $ |
getQcStatementAuthorities | public static String getQcStatementAuthorities(X509Certificate cert) throws IOException(Code) | | Returns the 'NameRegistrationAuthorities' defined in the QCStatement extension (rfc3739).
Parameters: cert - Certificate containing the extension String with for example 'rfc822Name=foo2bar.se, rfc822Name=bar2foo.se' etc. Supports email, dns and uri name, or null of no RAs are found. throws: IOException - if there is a problem parsing the certificate |
getQcStatementIds | public static Collection getQcStatementIds(X509Certificate cert) throws IOException(Code) | | Returns all the 'statementId' defined in the QCStatement extension (rfc3739).
Parameters: cert - Certificate containing the extension Collection of String with the oid, for example "1.1.1.2", or empty Collection if no identifier is found, never returns null. throws: IOException - if there is a problem parsing the certificate |
getQcStatementValueLimit | public static String getQcStatementValueLimit(X509Certificate cert) throws IOException(Code) | | Returns the value limit ETSI QCStatement if present.
Parameters: cert - X509Certificate possibly containing the QCStatement extension String with the value and currency (ex '50000 SEK')or null if the extension is not present throws: IOException - if there is a problem parsing the certificate |
hasQcStatement | public static boolean hasQcStatement(X509Certificate cert) throws IOException(Code) | | Returns true if the certificate contains a QC-statements extension.
Parameters: cert - Certificate containing the extension true or false. throws: IOException - if there is a problem parsing the certificate |
Methods inherited from org.ejbca.util.CertTools | public static int bitStringToRevokedCertInfo(DERBitString reasonFlags)(Code)(Java Doc) public static X509Certificate genSelfCert(String dn, long validity, String policyId, PrivateKey privKey, PublicKey pubKey, String sigAlg, boolean isCA) throws NoSuchAlgorithmException, SignatureException, InvalidKeyException, CertificateEncodingException, IllegalStateException(Code)(Java Doc) public static X509Certificate genSelfCertForPurpose(String dn, long validity, String policyId, PrivateKey privKey, PublicKey pubKey, String sigAlg, boolean isCA, int keyusage) throws NoSuchAlgorithmException, SignatureException, InvalidKeyException, CertificateEncodingException, IllegalStateException(Code)(Java Doc) public static byte[] generateMD5Fingerprint(byte[] ba)(Code)(Java Doc) public static byte[] generateSHA1Fingerprint(byte[] ba)(Code)(Java Doc) public static String getAltNameStringFromExtension(X509Extension ext)(Code)(Java Doc) public static String getAuthorityInformationAccessOcspUrl(X509Certificate cert) throws CertificateParsingException(Code)(Java Doc) public static byte[] getAuthorityKeyId(X509Certificate cert) throws IOException(Code)(Java Doc) public static X509CRL getCRLfromByteArray(byte[] crl) throws IOException, CRLException(Code)(Java Doc) public static ArrayList getCertCollectionFromArray(Certificate[] certs, String provider) throws CertificateException, NoSuchProviderException(Code)(Java Doc) public static String getCertFingerprintAsString(byte[] ba)(Code)(Java Doc) public static X509Certificate getCertfromByteArray(byte[] cert) throws CertificateException(Code)(Java Doc) public static CertificateFactory getCertificateFactory()(Code)(Java Doc) public static String getCertificatePolicyId(X509Certificate cert, int pos) throws IOException(Code)(Java Doc) public static Collection getCertsFromPEM(String certFile) throws IOException, CertificateException(Code)(Java Doc) public static Collection getCertsFromPEM(InputStream certstream) throws IOException, CertificateException(Code)(Java Doc) public static URL getCrlDistributionPoint(X509Certificate certificate) throws CertificateParsingException(Code)(Java Doc) public static ArrayList getCustomOids(String dn)(Code)(Java Doc) public static String getEMailAddress(X509Certificate certificate)(Code)(Java Doc) public static ArrayList getEmailFromDN(String dn)(Code)(Java Doc) protected static DERObject getExtensionValue(X509Certificate cert, String oid) throws IOException(Code)(Java Doc) public static String getFingerprintAsString(X509Certificate cert)(Code)(Java Doc) public static String getFingerprintAsString(X509CRL crl)(Code)(Java Doc) public static String getFingerprintAsString(byte[] in)(Code)(Java Doc) public static String getGeneralNameString(int tag, DEREncodable value) throws IOException(Code)(Java Doc) public static GeneralNames getGeneralNamesFromAltName(String altName)(Code)(Java Doc) public static String getGuidAltName(X509Certificate cert) throws IOException, CertificateParsingException(Code)(Java Doc) public static String getIssuerDN(X509Certificate cert)(Code)(Java Doc) public static String getIssuerDN(X509CRL crl)(Code)(Java Doc) public static byte[] getPEMFromCerts(Collection certs) throws CertificateException(Code)(Java Doc) public static byte[] getPEMFromCrl(byte[] crlbytes)(Code)(Java Doc) public static String getPartFromDN(String dn, String dnpart)(Code)(Java Doc) public static ArrayList getPartsFromDN(String dn, String dnpart)(Code)(Java Doc) public static String getSignatureAlgorithm(X509Certificate cert)(Code)(Java Doc) public static String getSubjectAlternativeName(X509Certificate certificate) throws CertificateParsingException, IOException(Code)(Java Doc) public static String getSubjectDN(X509Certificate cert)(Code)(Java Doc) public static byte[] getSubjectKeyId(X509Certificate cert) throws IOException(Code)(Java Doc) public static String getUPNAltName(X509Certificate cert) throws IOException, CertificateParsingException(Code)(Java Doc) public static Vector getX509FieldOrder(boolean ldaporder)(Code)(Java Doc) public static String insertCNPostfix(String dn, String cnpostfix)(Code)(Java Doc) public static synchronized void installBCProvider()(Code)(Java Doc) protected static boolean isDNReversed(String dn)(Code)(Java Doc) public static boolean isSelfSigned(X509Certificate cert)(Code)(Java Doc) public static synchronized void removeBCProvider()(Code)(Java Doc) public static String reverseDN(String dn)(Code)(Java Doc) public static String stringToBCDNString(String dn)(Code)(Java Doc) public static X509Name stringToBcX509Name(String dn)(Code)(Java Doc) public static X509Name stringToBcX509Name(String dn, X509NameEntryConverter converter, Vector dnOrder)(Code)(Java Doc) public static int sunKeyUsageToBC(boolean[] sku)(Code)(Java Doc) public static boolean verify(X509Certificate certificate, Collection caCertPath) throws Exception(Code)(Java Doc)
|
|
|