public class FullCertTemplate
extends java.lang.Object
| Constructor and Description |
|---|
FullCertTemplate()
This constructor creates an empty full certificate template.
|
FullCertTemplate(ASN1Object template)
This constructor decodes an ASN.1 representation of
a full certificate template.
|
| Modifier and Type | Method and Description |
|---|---|
ASN1Object |
getCertId()
This method returns the old certificate identifier field, which is used in
update requests to tie this certificate request to the user's request
history.
|
int |
getCertReqId()
This method returns the certificate request identifier associated with this
full certificate template.
|
boolean |
getKeyEscrow()
This method returns the key archive flag, which specifies whether
the manager should perform key escrow upon generated keys.
|
BIT_STRING |
getKeyUsage()
This method returns the desired key usage for the certificate
defined by the full certificate template.
|
ASN1Object |
getPopoSigningKey() |
boolean |
getPublication()
This method returns the certificate publication flag, which is true
if this certificate should be published in the directory, and false
otherwise.
|
java.security.PublicKey |
getUserPublicKey()
This method returns the public key associated with this template.
|
void |
setCertId(ASN1Object certId)
This method sets the old certificate identifier field.
|
void |
setCertReqId(int certReqId)
This method sets the certificate request identifier associated with the full
certificate template.
|
void |
setKeyEscrow(boolean keyEscrow)
This method specifies whether or not key escrow should be performed
on generated keys.
|
void |
setKeyUsage(BIT_STRING keyUsage)
This method sets the desired key usage for the certificate defined
by the full certificate template.
|
void |
setPopoSigningKey(ASN1Object popoSigningKey)
This method sets an ASN.1 object as representing the proof of
possession of the private key.
|
void |
setPublication(boolean pub)
This method sets the certificate publication flag, which determines
whether or not the certificate should be published in the directory.
|
void |
setUserPublicKey(java.security.PublicKey userPublicKey)
This method sets the public key in the template.
|
ASN1Object |
toASN1Object()
This method converts the full certificate template to an
ASN.1 object for transportation.
|
public FullCertTemplate()
public FullCertTemplate(ASN1Object template) throws CodingException
template - The ASN.1 representation.CodingException - This exception is thrown if the ASN.1 object does
not represent a full certificate template or cannot
be decoded.public ASN1Object toASN1Object() throws CodingException
CodingException - This exception is thrown if there is an error encoding any
of the necessary values.public int getCertReqId()
public void setCertReqId(int certReqId)
public java.security.PublicKey getUserPublicKey()
public void setUserPublicKey(java.security.PublicKey userPublicKey)
userPublicKey - The public key to be associated with
this certificate template.public BIT_STRING getKeyUsage()
public void setKeyUsage(BIT_STRING keyUsage)
keyUsage - The template's desired key usage.public ASN1Object getPopoSigningKey()
public void setPopoSigningKey(ASN1Object popoSigningKey)
popoSigningKey - The ASN.1 representation of the
proof-of-possession of the signing
key.public ASN1Object getCertId()
public void setCertId(ASN1Object certId)
certId - The old certificate identifier field.public boolean getKeyEscrow()
public void setKeyEscrow(boolean keyEscrow)
keyEscrow - True if key escrow is to be performed, false otherwise.public boolean getPublication()
public void setPublication(boolean pub)
pub - True if the certificate is to be published; false otherwise.