public class PKCS7SignedObject extends Object
Constructor and Description |
---|
PKCS7SignedObject() |
PKCS7SignedObject(boolean isSDOValidate) |
PKCS7SignedObject(org.bouncycastle.cms.CMSSignedData passedPKCS7) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAuthenticatedAttributeBBSChannel() |
int |
getNumberSubCACerts()
Returns the number of sub CA certificates in PKCS#7
|
X509Certificate |
getRootCACert()
Returns the root certificate from the PKCS#7
|
byte[] |
getRootCACertDERBytes()
Returns the root certificate from the PKCS#7
|
org.bouncycastle.cms.CMSSignedData |
getSignedData()
Retrieves the signed data from the PKCS#7
|
X509Certificate |
getSignerCert()
Returns the signer certificate from the PKCS#7
|
byte[] |
getSignerCertDERBytes()
Returns the signer certificate bytes from the PKCS#7
|
Date |
getSigningTime()
Returns the Signing Time from the PKCS#7
|
X509Certificate |
getSubCACert(int level)
Returns the Sub CA certificate at the input level
|
byte[] |
getSubCACertToDER(int level)
Returns the Sub CA certificate at the input level
|
boolean |
isSDOValidate() |
void |
set(BIDByteArray data,
boolean isBase64Encoded)
Base64 Decodes the input PKCS7 and creates a SignedData Object
|
void |
set(byte[] pkcs7Bytes,
boolean isBase64Encoded)
Base64 Decodes the input PKCS7 and creates a SignedData Object
|
void |
set(org.bouncycastle.cms.CMSSignedData pkcs7) |
public PKCS7SignedObject()
public PKCS7SignedObject(org.bouncycastle.cms.CMSSignedData passedPKCS7)
public PKCS7SignedObject(boolean isSDOValidate)
public void set(BIDByteArray data, boolean isBase64Encoded) throws BIDException
data
- The input PKCS7BIDException
- If Base64 decoding failspublic void set(byte[] pkcs7Bytes, boolean isBase64Encoded) throws BIDException
pkcs7Bytes
- The input PKCS7BIDException
- If Base64 decoding failspublic void set(org.bouncycastle.cms.CMSSignedData pkcs7)
public org.bouncycastle.cms.CMSSignedData getSignedData()
public X509Certificate getSignerCert() throws BIDException
BIDException
- If something failspublic byte[] getSignerCertDERBytes() throws BIDException
BIDException
- If something failspublic int getNumberSubCACerts() throws BIDException
BIDException
- If something failspublic X509Certificate getSubCACert(int level) throws BIDException
level
- The level to search forBIDException
- If something goes wrongpublic byte[] getSubCACertToDER(int level) throws BIDException
level
- The level to search forBIDException
- If something goes wrongpublic X509Certificate getRootCACert() throws BIDException
BIDException
- If something goes wrongpublic byte[] getRootCACertDERBytes() throws BIDException
BIDException
- If something goes wrongpublic Date getSigningTime() throws BIDException
BIDException
- If parsing the SignerInfo fails.public byte[] getAuthenticatedAttributeBBSChannel() throws BIDException
BIDException
public boolean isSDOValidate()
Copyright © 2017 Nets Branch Norway. All Rights Reserved.