public class PKCS7Info extends Object implements Serializable
Constructor and Description |
---|
PKCS7Info() |
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfSubCACertificates()
Returns the number of Sub CA Certificates in the signer certificates
certificateChain
|
byte[] |
getRootCertificate()
Returns the Root CA Certificate for the Signer Certificate
|
byte[] |
getSignedData()
Returns the PKCS7 Content
|
byte[] |
getSignerCertificate()
Returns the Signer Certificate
|
Date |
getSigningTime()
Returns the Signing Time
|
byte[] |
getSubCACertificate(int level)
Returns the SUB CA Certificate at the level in the certificate chain
that corresponds to the input level (int)
|
HashMap<String,byte[]> |
getSubCACertificates()
Returns a HashMap containing the signing certificates.
|
void |
setNumberOfSubCACertificates(int i)
Sets the number of SUB CA Certificates
|
void |
setRootCertificate(byte[] bs)
Set the Root CA Certificate bytes
|
void |
setSignedData(byte[] bs)
Sets the PKCS7 content bytes
|
void |
setSignerCertificate(byte[] bs)
Sets the Signer Certificate bytes
|
void |
setSigningTime(Date date)
Sets the signing time as java.util.Date
|
void |
setSubCACertificate(int index,
byte[] certificateBytes)
Sets the SUBCACertificate and the correct level
|
void |
setSubCACertificates(HashMap<String,byte[]> map)
Sets the SUB CA Certificate Map
|
public byte[] getSubCACertificate(int level)
level
- The sub ca levelpublic void setSubCACertificate(int index, byte[] certificateBytes)
index
- int The syub ca levelcertificateBytes
- byte[] The certificate DER bytespublic int getNumberOfSubCACertificates()
public byte[] getRootCertificate()
public byte[] getSignedData()
public byte[] getSignerCertificate()
public Date getSigningTime()
public HashMap<String,byte[]> getSubCACertificates()
public void setNumberOfSubCACertificates(int i)
i
- The certificate chain lengthpublic void setRootCertificate(byte[] bs)
bs
- The Root CA Certificate bytespublic void setSignedData(byte[] bs)
bs
- The PCKS7 contentpublic void setSignerCertificate(byte[] bs)
bs
- The signer certificate bytespublic void setSigningTime(Date date)
date
- The signing timeCopyright © 2017 Nets Branch Norway. All Rights Reserved.