|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.slcs.pki.bouncycastle.PKCS10
public class PKCS10
PKCS10 wrapper class for the BouncyCastle PKCS10CertificationRequest
object.
Field Summary | |
---|---|
static java.lang.String |
SIGNATURE_ALGORITHM
Signature algorithm for the PKCS#10 request |
Constructor Summary | |
---|---|
PKCS10(java.lang.String subject,
java.security.PublicKey publicKey,
java.security.PrivateKey privateKey)
|
|
PKCS10(java.lang.String subject,
java.security.PublicKey publicKey,
java.security.PrivateKey privateKey,
org.bouncycastle.asn1.x509.X509Extensions x509Extensions)
|
Method Summary | |
---|---|
byte[] |
getDEREncoded()
|
java.lang.String |
getPEMEncoded()
|
java.security.Principal |
getPrincipal()
|
java.lang.String |
getSubject()
|
org.bouncycastle.asn1.x509.X509Extensions |
getX509Extensions()
Gets the X509Extensions included in the PKCS10. |
static PKCS10 |
readPEMEncoded(java.io.Reader reader)
Reads the PKCS10 from a reader. |
void |
storeDEREncoded(java.io.File file)
Stores the DER encoded PKCS#10 in a file. |
void |
storePEMEncoded(java.io.File file)
Stores the PCKS10 in PEM format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String SIGNATURE_ALGORITHM
Constructor Detail |
---|
public PKCS10(java.lang.String subject, java.security.PublicKey publicKey, java.security.PrivateKey privateKey) throws java.security.GeneralSecurityException
subject
- publicKey
- privateKey
-
java.security.GeneralSecurityException
public PKCS10(java.lang.String subject, java.security.PublicKey publicKey, java.security.PrivateKey privateKey, org.bouncycastle.asn1.x509.X509Extensions x509Extensions) throws java.security.GeneralSecurityException
subject
- publicKey
- privateKey
- x509Extensions
-
java.security.GeneralSecurityException
Method Detail |
---|
public byte[] getDEREncoded()
public java.lang.String getPEMEncoded()
public void storePEMEncoded(java.io.File file) throws java.io.IOException
file
- The file to store into.
java.io.IOException
public void storeDEREncoded(java.io.File file) throws java.io.IOException
file
- The file to store into.
java.io.IOException
public static PKCS10 readPEMEncoded(java.io.Reader reader) throws java.io.IOException, java.security.GeneralSecurityException
reader
-
java.io.IOException
java.security.GeneralSecurityException
Reader
public java.lang.String getSubject()
public java.security.Principal getPrincipal()
public org.bouncycastle.asn1.x509.X509Extensions getX509Extensions()
null
if there is no
X509Extensions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |