org.rhq.enterprise.server.plugins.rhnhosted
Class RHNSSLCertReader
java.lang.Object
org.rhq.enterprise.server.plugins.rhnhosted.RHNSSLCertReader
public class RHNSSLCertReader
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BEGIN_CERT
public static final String BEGIN_CERT
- See Also:
- Constant Field Values
END_CERT
public static final String END_CERT
- See Also:
- Constant Field Values
RHNSSLCertReader
public RHNSSLCertReader()
getStartPosition
protected static int getStartPosition(String rawText,
int offset)
getEndPosition
protected static int getEndPosition(String rawText,
int offset)
getCertText
public static List<String> getCertText(String rawText)
getSSLCertificates
public static List<X509Certificate> getSSLCertificates(String rawText)
throws CertificateException
- Throws:
CertificateException
getSSLCertificates
public static List<X509Certificate> getSSLCertificates(List<String> rawCerts)
throws CertificateException
- Throws:
CertificateException
getCert
public static X509Certificate getCert(String rawText)
throws CertificateException
- Throws:
CertificateException
main
public static void main(String[] args)
Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.