|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.geclipse.core.security.X509Util
public class X509Util
Utility class for handling X509Certificates.
| Constructor Summary | |
|---|---|
X509Util()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
formatEncodedData(byte[] data)
Get a proper string representation of the specified encrypted data. |
static java.lang.String |
formatSerialNumber(java.math.BigInteger serial)
Get a proper string representation of a certificate's serial number. |
static java.security.cert.X509Certificate |
loadCertificate(java.io.InputStream iStream)
Load a certificate from the specified input stream. |
static void |
saveCertificate(java.security.cert.X509Certificate c,
java.io.OutputStream oStream)
Save the specified certificate formatted as PEM to the specified output stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public X509Util()
| Method Detail |
|---|
public static java.lang.String formatSerialNumber(java.math.BigInteger serial)
serial - The certificate's serial number.
public static java.lang.String formatEncodedData(byte[] data)
data - The encrypted data.
public static java.security.cert.X509Certificate loadCertificate(java.io.InputStream iStream)
throws ProblemException
iStream - The input stream pointing to the certificates raw data.
ProblemException - If no certificate could be loaded from the
specified input stream.
public static void saveCertificate(java.security.cert.X509Certificate c,
java.io.OutputStream oStream)
throws ProblemException
c - The certificate to be saved.oStream - The output stream where the certificate data should be
written.
ProblemException - If An error occurs.
|
g-Eclipse Release 1.0.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||