|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.rhnhosted.certificate.CertificateFactory
public class CertificateFactory
A class for parsing rhq certificates from their XML form. The XML format is identical to the one used by the perl code.
| Method Summary | |
|---|---|
static Certificate |
read(File file)
Parse a certificate from file. |
static Certificate |
read(String certString)
Parse the certificate from certString. |
static Certificate |
read(URL url)
Parse a certificate from the contents of url. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Certificate read(String certString)
throws org.jdom.JDOMException,
IOException
certString.
certString - valid Satellite Certificate in string form
certString
org.jdom.JDOMException - XML parsing fails
IOException - unknown
public static Certificate read(File file)
throws org.jdom.JDOMException,
IOException
file. The file must contain the
certificate in XML form.
file - the file with the XML certificate
fle
org.jdom.JDOMException - if parsing the XML fails
IOException - if reading the file fails
public static Certificate read(URL url)
throws org.jdom.JDOMException,
IOException
url. The file must
contain the certificate in XML form.
url - the URL at which the XML certificate is located
fle
org.jdom.JDOMException - if parsing the XML fails
IOException - if reading the contents of url fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||