public class StaticKeygenService extends Object implements KeygenService
issuer
Constructor and Description |
---|
StaticKeygenService() |
Modifier and Type | Method and Description |
---|---|
Certificate |
createFromCRMF(String crmfReq)
CRMF requests are produced by the javascript generateCRMFRequest()
method in Netscape and are documented by RFC 2511.
|
Certificate |
createFromPEM(String pemCsr)
Create certificates from PEM requests, coming from Internet Explorer usually
|
Certificate |
createFromSpkac(String spkac)
Create Certificates from SPKAC requests coming from the other browsers
|
public Certificate createFromPEM(String pemCsr)
createFromPEM
in interface KeygenService
pemCsr
- public Certificate createFromSpkac(String spkac)
createFromSpkac
in interface KeygenService
spkac
- InvalidParameterException
public Certificate createFromCRMF(String crmfReq)
KeygenService
CRMF requests are produced by the javascript generateCRMFRequest() method in Netscape and are documented by RFC 2511.
Using this method may be needed when the server has to produce XHTML (should be rare!) as the keygen
tag in Netscape browsers is only supported by html. This should be fixed soon, now that html5 supports the keygen
element. For progress on this issue check bug report 101019.
A CRMF request can contain more details about the certificate, but those would better be passed using a form, as in the keygen examples, the server then setting those fields directly on the returned request. Currently we extract only the public key to generate the returned Certificate.
createFromCRMF
in interface KeygenService
crmfReq
- the requestCopyright © 2014 The Apache Software Foundation. All Rights Reserved.