|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.rim.device.api.crypto.certificate.x509.PKCS10CertificateRequest
public class PKCS10CertificateRequest
Implements the PKCS10 ( v1.7 from May 2000 ) certificate request syntax standard. (RFC2986)
Constructor Summary | ||
---|---|---|
|
PKCS10CertificateRequest(PublicKey publicKey,
X509DistinguishedName name,
SignatureSigner signer)
Constructs a new X509CertificateRequest object. |
Method Summary | ||
---|---|---|
|
void |
addExtension(CertificateExtension extension)
Adds an extension to be included in the certificate request. |
|
String |
getCSRFormat()
Encodes the certificate request and returns the encoded result in the format of a csr file. |
|
byte[] |
getEncoded()
Encodes the certificate request and returns the encoded result. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PKCS10CertificateRequest(PublicKey publicKey, X509DistinguishedName name, SignatureSigner signer)
X509CertificateRequest
object.
publicKey
- The public key to request a certificate of.name
- The distinguished name that identifies this public key.signer
- The signature signer to sign this request with.Method Detail |
---|
public void addExtension(CertificateExtension extension)
extension
- The certifcate extension.public byte[] getEncoded() throws IOException, NoSuchAlgorithmException, InvalidKeyEncodingException, CryptoTokenException
IOException
- Thrown in an IO error occurs
NoSuchAlgorithmException
- Thrown if the specified algorithm is
invalid.
InvalidKeyEncodingException
- Thrown if the key is incorrectly
formatted.
CryptoTokenException
- Thrown if an error occurs with the crypto
token or the crypto token is invalid.public String getCSRFormat() throws NoSuchAlgorithmException, InvalidKeyEncodingException, CryptoTokenException
NoSuchAlgorithmException
- Thrown if the specified algorithm is
invalid.
InvalidKeyEncodingException
- Thrown if the key is incorrectly
formatted.
CryptoTokenException
- Thrown if an error occurs with the crypto
token or the crypto token is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright 1999-2010 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.