Top Fields Constructors Methods
org.bouncycastle.cms

pack-priv Class CMSUtils

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, .OutputStream, java.util.ArrayList, .Collection, .Collections, .HashSet, .Iterator, .List, .Map, .Set, org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1Encoding, .ASN1InputStream, .ASN1ObjectIdentifier, .ASN1OctetString, .ASN1SequenceParser, .ASN1Set, .ASN1SetParser, .ASN1TaggedObject, .BEROctetString, .BEROctetStringGenerator, .BERSequenceGenerator, .BERSet, .DERNull, .DERSet, .DERTaggedObject, .DLSet, org.bouncycastle.asn1.cms.AttributeTable, .CMSObjectIdentifiers, .ContentInfo, .EncryptedContentInfo, .OriginatorInfo, .OtherRevocationInfoFormat, org.bouncycastle.asn1.cryptopro.CryptoProObjectIdentifiers, org.bouncycastle.asn1.ocsp.OCSPResponse, .OCSPResponseStatus, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.asn1.rosstandart.RosstandartObjectIdentifiers, org.bouncycastle.asn1.sec.SECObjectIdentifiers, org.bouncycastle.asn1.x509.AlgorithmIdentifier, org.bouncycastle.asn1.x9.X9ObjectIdentifiers, org.bouncycastle.cert.X509AttributeCertificateHolder, .X509CRLHolder, .X509CertificateHolder, org.bouncycastle.operator.DigestAlgorithmIdentifierFinder, .DigestCalculator, .GenericKey, .OutputAEADEncryptor, .OutputEncryptor, org.bouncycastle.util.Store, .Strings, org.bouncycastle.util.io.Streams, .TeeInputStream, .TeeOutputStream

Field Summary

Modifier and TypeField and Description
private static final Set<String>
private static final Set<E>
private static final Set<E>
private static final Set<E>

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
addAttriSetToGenerator(BERSequenceGenerator gen, CMSAttributeTableGenerator attriGen, int tagNo, Map<K, V> parameters)

pack-priv static void
pack-priv static void
pack-priv static void
addRecipientInfosToGenerator(ASN1EncodableVector recipientInfos, BERSequenceGenerator authGen, boolean berEncodeRecipientSet)

pack-priv static InputStream
pack-priv static OutputStream
pack-priv static ASN1Set
pack-priv static OutputStream
createBEROctetOutputStream(OutputStream s, int tagNo, boolean isExplicit, int bufferSize)

pack-priv static ASN1Set
createBerSetFromList(List<E> derObjects)

pack-priv static ASN1Set
createDerSetFromList(List<E> derObjects)

pack-priv static ASN1Set
createDlSetFromList(List<E> derObjects)

pack-priv static byte[]
pack-priv static ASN1Set
pack-priv static ASN1Set
pack-priv static List<E>
pack-priv static AttributeTable
pack-priv static List<E>
pack-priv static List<E>
getCRLsFromStore(Store<T> crlStore)

pack-priv static EncryptedContentInfo
getEncryptedContentInfo(CMSTypedData content, OutputEncryptor contentEncryptor, byte[] encryptedContent)

pack-priv static EncryptedContentInfo
getEncryptedContentInfo(ASN1ObjectIdentifier encryptedContentType, AlgorithmIdentifier encAlgId, byte[] encryptedContent)

pack-priv static Collection<E>
getOthersFromStore(ASN1ObjectIdentifier otherRevocationInfoFormat, Store<T> otherRevocationInfos)

pack-priv static ASN1EncodableVector
getRecipentInfos(GenericKey encKey, List<E> recipientInfoGenerators)

pack-priv static OutputStream
pack-priv static OutputStream
pack-priv static boolean
isDES(String algorithmID)

pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static boolean
pack-priv static ASN1Set
pack-priv static ContentInfo
readContentInfo(byte[] input)

pack-priv static ContentInfo
private static ContentInfo
public static byte[]
public static byte[]
pack-priv static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

desback to summary
private static final Set<String> des
ecAlgsback to summary
private static final Set<E> ecAlgs
gostAlgsback to summary
private static final Set<E> gostAlgs
mqvAlgsback to summary
private static final Set<E> mqvAlgs

Constructor Detail

CMSUtilsback to summary
pack-priv CMSUtils()

Method Detail

addAttriSetToGeneratorback to summary
pack-priv static void addAttriSetToGenerator(BERSequenceGenerator gen, CMSAttributeTableGenerator attriGen, int tagNo, Map<K, V> parameters) throws IOException
addDigestAlgsback to summary
pack-priv static void addDigestAlgs(Set<AlgorithmIdentifier> digestAlgs, SignerInformation signer, DigestAlgorithmIdentifierFinder dgstAlgFinder)
addOriginatorInfoToGeneratorback to summary
pack-priv static void addOriginatorInfoToGenerator(BERSequenceGenerator envGen, OriginatorInfo originatorInfo) throws IOException
addRecipientInfosToGeneratorback to summary
pack-priv static void addRecipientInfosToGenerator(ASN1EncodableVector recipientInfos, BERSequenceGenerator authGen, boolean berEncodeRecipientSet) throws IOException
attachDigestsToInputStreamback to summary
pack-priv static InputStream attachDigestsToInputStream(Collection<E> digests, InputStream s)
attachSignersToOutputStreamback to summary
pack-priv static OutputStream attachSignersToOutputStream(Collection<E> signers, OutputStream s)
convertToDlSetback to summary
pack-priv static ASN1Set convertToDlSet(Set<AlgorithmIdentifier> digestAlgs)
createBEROctetOutputStreamback to summary
pack-priv static OutputStream createBEROctetOutputStream(OutputStream s, int tagNo, boolean isExplicit, int bufferSize) throws IOException
createBerSetFromListback to summary
pack-priv static ASN1Set createBerSetFromList(List<E> derObjects)
createDerSetFromListback to summary
pack-priv static ASN1Set createDerSetFromList(List<E> derObjects)
createDlSetFromListback to summary
pack-priv static ASN1Set createDlSetFromList(List<E> derObjects)
encodeObjback to summary
pack-priv static byte[] encodeObj(ASN1Encodable obj) throws IOException
getAttrBERSetback to summary
pack-priv static ASN1Set getAttrBERSet(CMSAttributeTableGenerator gen)
getAttrDLSetback to summary
pack-priv static ASN1Set getAttrDLSet(CMSAttributeTableGenerator gen)
getAttributeCertificatesFromStoreback to summary
pack-priv static List<E> getAttributeCertificatesFromStore(Store<T> attrStore) throws CMSException
getAttributesTableback to summary
pack-priv static AttributeTable getAttributesTable(ASN1SetParser set) throws IOException
getCertificatesFromStoreback to summary
pack-priv static List<E> getCertificatesFromStore(Store<T> certStore) throws CMSException
getCRLsFromStoreback to summary
pack-priv static List<E> getCRLsFromStore(Store<T> crlStore) throws CMSException
getEncryptedContentInfoback to summary
pack-priv static EncryptedContentInfo getEncryptedContentInfo(CMSTypedData content, OutputEncryptor contentEncryptor, byte[] encryptedContent)
getEncryptedContentInfoback to summary
pack-priv static EncryptedContentInfo getEncryptedContentInfo(ASN1ObjectIdentifier encryptedContentType, AlgorithmIdentifier encAlgId, byte[] encryptedContent)
getOthersFromStoreback to summary
pack-priv static Collection<E> getOthersFromStore(ASN1ObjectIdentifier otherRevocationInfoFormat, Store<T> otherRevocationInfos)
getRecipentInfosback to summary
pack-priv static ASN1EncodableVector getRecipentInfos(GenericKey encKey, List<E> recipientInfoGenerators) throws CMSException
getSafeOutputStreamback to summary
pack-priv static OutputStream getSafeOutputStream(OutputStream s)
getSafeTeeOutputStreamback to summary
pack-priv static OutputStream getSafeTeeOutputStream(OutputStream s1, OutputStream s2)
isDESback to summary
pack-priv static boolean isDES(String algorithmID)
isECback to summary
pack-priv static boolean isEC(ASN1ObjectIdentifier algorithm)
isEquivalentback to summary
pack-priv static boolean isEquivalent(AlgorithmIdentifier algId1, AlgorithmIdentifier algId2)
isGOSTback to summary
pack-priv static boolean isGOST(ASN1ObjectIdentifier algorithm)
isMQVback to summary
pack-priv static boolean isMQV(ASN1ObjectIdentifier algorithm)
isRFC2631back to summary
pack-priv static boolean isRFC2631(ASN1ObjectIdentifier algorithm)
processAuthAttrSetback to summary
pack-priv static ASN1Set processAuthAttrSet(CMSAttributeTableGenerator authAttrsGenerator, OutputAEADEncryptor encryptor) throws IOException
readContentInfoback to summary
pack-priv static ContentInfo readContentInfo(byte[] input) throws CMSException
readContentInfoback to summary
pack-priv static ContentInfo readContentInfo(InputStream input) throws CMSException
readContentInfoback to summary
private static ContentInfo readContentInfo(ASN1InputStream in) throws CMSException
streamToByteArrayback to summary
public static byte[] streamToByteArray(InputStream in) throws IOException
streamToByteArrayback to summary
public static byte[] streamToByteArray(InputStream in, int limit) throws IOException
validateInfoFormatback to summary
pack-priv static void validateInfoFormat(OtherRevocationInfoFormat infoFormat)