Methods Summary |
---|
private byte[] | encodeObj(org.bouncycastle.asn1.DEREncodable obj)
if (obj != null)
{
return obj.getDERObject().getEncoded();
}
return null;
|
public org.bouncycastle.asn1.cms.ContentInfo | getContentInfo()return the ContentInfo
return contentInfo;
|
public byte[] | getEncoded()return the ASN.1 encoded representation of this object.
return contentInfo.getEncoded();
|
public java.lang.String | getEncryptionAlgOID()return the object identifier for the content encryption algorithm.
return encAlg.getObjectId().getId();
|
public byte[] | getEncryptionAlgParams()return the ASN.1 encoded encryption algorithm parameters, or null if
there aren't any.
try
{
return encodeObj(encAlg.getParameters());
}
catch (Exception e)
{
throw new RuntimeException("exception getting encryption parameters " + e);
}
|
public java.security.AlgorithmParameters | getEncryptionAlgorithmParameters(java.lang.String provider)Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the message content.
return getEncryptionAlgorithmParameters(CMSUtils.getProvider(provider));
|
public java.security.AlgorithmParameters | getEncryptionAlgorithmParameters(java.security.Provider provider)Return an AlgorithmParameters object giving the encryption parameters
used to encrypt the message content.
return CMSEnvelopedHelper.INSTANCE.getEncryptionAlgorithmParameters(getEncryptionAlgOID(), getEncryptionAlgParams(), provider);
|
public RecipientInformationStore | getRecipientInfos()return a store of the intended recipients for this message
return recipientInfoStore;
|
public org.bouncycastle.asn1.cms.AttributeTable | getUnprotectedAttributes()return a table of the unprotected attributes indexed by
the OID of the attribute.
if (unprotectedAttributes == null)
{
return null;
}
return new AttributeTable(unprotectedAttributes);
|