public class CkiX509 extends X509
holder, key
Constructor and Description |
---|
CkiX509(CkiSession session, byte[] keyID)
Creates a new CkiX509 object.
|
CkiX509(CkiSession session, CkiObject ckiObject)
Creates a new CkiX509 object.
|
CkiX509(CkiSlot slot, byte[] keyID)
Creates a new CkiX509 object.
|
CkiX509(java.io.InputStream is) |
Modifier and Type | Method and Description |
---|---|
protected void |
decode() |
X500Name |
getIssuer()
Returns the name of the issuer.
|
byte[] |
getKeyID()
Gets the keyID of this CkiX509 object.
|
java.lang.String |
getLabel()
Retrieves the label of this CkiX509 passed in parameter
|
java.math.BigInteger |
getSerialNo()
Get the serial number.
|
CkiSlot |
getSlot()
Gets the cki slot corresponding to this CkiX509 object.
|
X500Name |
getSubject()
Returns the name of the subject of this certificate (same as
getHolder , except the return type is X500Name ). |
void |
input(java.io.InputStream is)
Reads a
CkiX509 from the given input stream. |
void |
outputCki(java.io.OutputStream os)
Outputs encoding of this object to the given output stream.
|
void |
saveChanges()
Saves the changes of this CkiX509 object on the token.
|
void |
setKeyID(byte[] keyID)
Sets the keyID of this CkiX509 object.
|
void |
setLabel(java.lang.String label)
Sets the label of this CkiX509 passed in parameter
|
void |
setSlot(CkiSlot slot)
Sets the CkiSlot.
|
addExtension, checkValidity, checkValidity, equals, getBasicConstraints, getCertID, getCertID, getCertID, getCriticalExtensionOIDs, getEncoded, getExtendedKeyUsage, getExtension, getExtensionSet, getExtensionValue, getFingerprint, getHolder, getIssuerAlternativeNames, getIssuerDN, getIssuerUniqueID, getIssuerX500Principal, getKeyUsage, getNonCriticalExtensionOIDs, getNotAfter, getNotAfterDate, getNotBefore, getNotBeforeDate, getPublicKey, getSerialNumber, getSigAlgName, getSigAlgOID, getSigAlgParams, getSigAlgString, getSigBytes, getSignature, getSubjectAlternativeNames, getSubjectDN, getSubjectUniqueID, getSubjectX500Principal, getTBSCertificate, getVersion, hashCode, hasUnrecognizedCriticalExtension, hasUnsupportedCriticalExtension, length, output, readExternal, setExtensions, setHolder, setIssuer, setIssuerCertificate, setIssuerCertificate, setIssuerCRL, setIssuerPrivateKey, setIssuerPrivateKey, setIssuerPrivateKey, setNotAfterDate, setNotBeforeDate, setPublicKey, setPublicKey, setSerialNo, setSigAlgID, setSubject, setValidity, sign, sign, toString, toX509, toX509Certificate, verify, verify, verify, verifyCertCRL, verifyCertDate, verifyCertSignature, verifySignature, writeExternal
public CkiX509(CkiSlot slot, byte[] keyID) throws CryptokiException
slot
- The ckislot where the certificate can be found.keyID
- The keyID of the certificate.CryptokiException
public CkiX509(CkiSession session, byte[] keyID) throws CryptokiException
session
- The session to use to find the certificate.keyID
- The keyID of the certificate.CryptokiException
public CkiX509(CkiSession session, CkiObject ckiObject) throws CryptokiException
session
- The CkiSession object.handle
- The CkiObject pointing to the object on the token within the session.CryptokiException
public CkiX509(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public X500Name getSubject()
getHolder
, except the return type is X500Name
).getSubject
in class X509
public X500Name getIssuer()
public java.math.BigInteger getSerialNo()
getSerialNo
in class X509
public byte[] getKeyID()
public void setKeyID(byte[] keyID) throws CryptokiException
keyID
- The new key ID.CryptokiException
public void setLabel(java.lang.String label) throws CryptokiException
label
- The new label.CryptokiException
public java.lang.String getLabel() throws CryptokiException
byte[]
CryptokiException
public CkiSlot getSlot()
public void setSlot(CkiSlot slot)
public void input(java.io.InputStream is) throws java.io.IOException
CkiX509
from the given input stream.public void outputCki(java.io.OutputStream os) throws java.io.IOException
os
- The output stream to which the encoding of this object will be written.java.io.IOException
- if an output exception occured.public void saveChanges() throws CryptokiException, java.io.IOException
CryptokiException
java.io.IOException