|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.slcs.pki.CertificateRequest
public class CertificateRequest
CertificateRequest is a wrapper class for a PKCS10 object and the methods to read and store as PEM format.
Constructor Summary | |
---|---|
CertificateRequest(CertificateKeys keys,
java.security.Principal principal)
Creates a certificate request for the given keys and principal (DN). |
|
CertificateRequest(CertificateKeys keys,
java.lang.String subject)
Creates a certificate request for the given keys and subject (DN). |
|
CertificateRequest(CertificateKeys keys,
java.lang.String subject,
java.util.List certificateExtensions)
Creates a certificate request for the given keys, subject and extensions. |
|
CertificateRequest(PKCS10 pkcs10)
Creates a certificate request with the given PKCS10 object. |
Method Summary | |
---|---|
java.util.List |
getCertificateExtensions()
Returns a List of certificate extensions contained in the certificate request. |
byte[] |
getDEREncoded()
|
java.lang.String |
getPEMEncoded()
|
java.security.Principal |
getPrincipal()
|
static CertificateRequest |
loadPEM(java.io.File file)
|
static CertificateRequest |
readPEM(java.io.Reader reader)
|
void |
storePEM(java.io.File file)
|
void |
storePEM(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CertificateRequest(CertificateKeys keys, java.security.Principal principal) throws java.security.GeneralSecurityException
keys
- The CertificateKeysprincipal
- The certificate request principal (DN).
java.security.GeneralSecurityException
- If an error occurs while creating the object.public CertificateRequest(CertificateKeys keys, java.lang.String subject) throws java.security.GeneralSecurityException
keys
- The CertificateKeyssubject
- The certificate request subject (DN).
java.security.GeneralSecurityException
- If an error occurs while creating the object.public CertificateRequest(CertificateKeys keys, java.lang.String subject, java.util.List certificateExtensions) throws java.security.GeneralSecurityException
keys
- The CertificateKeyssubject
- The certificate request subject (DN).extensions
- An List of certificate extensions.
java.security.GeneralSecurityException
- If an error occurs while creating the object.CertificateExtension
public CertificateRequest(PKCS10 pkcs10)
pkcs10
- The PKCS10 object.Method Detail |
---|
public java.util.List getCertificateExtensions()
public java.security.Principal getPrincipal()
public java.lang.String getPEMEncoded()
public byte[] getDEREncoded()
public void storePEM(java.lang.String filename) throws java.io.IOException
filename
-
java.io.IOException
public void storePEM(java.io.File file) throws java.io.IOException
file
-
java.io.IOException
public static CertificateRequest loadPEM(java.io.File file) throws java.io.IOException, java.security.GeneralSecurityException
file
-
java.io.IOException
java.security.GeneralSecurityException
public static CertificateRequest readPEM(java.io.Reader reader) throws java.io.IOException, java.security.GeneralSecurityException
reader
-
java.io.IOException
java.security.GeneralSecurityException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |