Methods Summary |
---|
private byte[] | encodeObj(org.bouncycastle.asn1.DEREncodable obj)
if (obj != null)
{
return obj.getDERObject().getEncoded();
}
return null;
|
public java.lang.String | getEncryptionAlgOID()return the object identifier for the content encryption algorithm.
return _encAlg.getObjectId().toString();
|
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 && _attrNotRead)
{
ASN1SetParser set = _envelopedData.getUnprotectedAttrs();
_attrNotRead = false;
if (set != null)
{
ASN1EncodableVector v = new ASN1EncodableVector();
DEREncodable o;
while ((o = set.readObject()) != null)
{
ASN1SequenceParser seq = (ASN1SequenceParser)o;
v.add(seq.getDERObject());
}
_unprotectedAttributes = new AttributeTable(new DERSet(v));
}
}
return _unprotectedAttributes;
|