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, .HashSet, .Iterator, .List, .Set, org.bouncycastle.asn1.ASN1Encodable, .ASN1EncodableVector, .ASN1InputStream, .ASN1ObjectIdentifier, .ASN1Set, .ASN1TaggedObject, .BEROctetStringGenerator, .BERSet, .DERNull, .DERSet, .DERTaggedObject, .DLSet, org.bouncycastle.asn1.cms.CMSObjectIdentifiers, .ContentInfo, .OtherRevocationInfoFormat, org.bouncycastle.asn1.ocsp.OCSPResponse, .OCSPResponseStatus, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, 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, 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
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 List<E>
pack-priv static List<E>
pack-priv static List<E>
getCRLsFromStore(Store<T> crlStore)

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

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 ContentInfo
readContentInfo(byte[] input)

pack-priv static ContentInfo
private static ContentInfo
public static byte[]
public static byte[]
private 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

addDigestAlgsback to summary
pack-priv static void addDigestAlgs(Set<AlgorithmIdentifier> digestAlgs, SignerInformation signer, DigestAlgorithmIdentifierFinder dgstAlgFinder)
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)
getAttributeCertificatesFromStoreback to summary
pack-priv static List<E> getAttributeCertificatesFromStore(Store<T> attrStore) throws CMSException
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
getOthersFromStoreback to summary
pack-priv static Collection<E> getOthersFromStore(ASN1ObjectIdentifier otherRevocationInfoFormat, Store<T> otherRevocationInfos)
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)
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
private static void validateInfoFormat(OtherRevocationInfoFormat infoFormat)