org.rhq.enterprise.server.plugins.rhnhosted
Class RHNSSLCertReader

java.lang.Object
  extended by org.rhq.enterprise.server.plugins.rhnhosted.RHNSSLCertReader

public class RHNSSLCertReader
extends Object


Field Summary
static String BEGIN_CERT
           
static String END_CERT
           
 
Constructor Summary
RHNSSLCertReader()
           
 
Method Summary
static X509Certificate getCert(String rawText)
           
static List<String> getCertText(String rawText)
           
protected static int getEndPosition(String rawText, int offset)
           
static List<X509Certificate> getSSLCertificates(List<String> rawCerts)
           
static List<X509Certificate> getSSLCertificates(String rawText)
           
protected static int getStartPosition(String rawText, int offset)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

RHNSSLCertReader

public RHNSSLCertReader()
Method Detail

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.