kz.gamma.hardware.cms
Class CMSUtils

java.lang.Object
  extended by kz.gamma.hardware.cms.CMSUtils

 class CMSUtils
extends java.lang.Object


Field Summary
private static java.lang.Runtime RUNTIME
           
 
Constructor Summary
CMSUtils()
           
 
Method Summary
(package private) static ASN1Set createBerSetFromList(java.util.List derObjects)
           
(package private) static ASN1Set createDerSetFromList(java.util.List derObjects)
           
(package private) static java.util.List getCertificatesFromStore(java.security.cert.CertStore certStore)
           
(package private) static java.util.List getCRLsFromStore(java.security.cert.CertStore certStore)
           
(package private) static int getMaximumMemory()
           
private static ContentInfo readContentInfo(ASN1InputStream in)
           
(package private) static ContentInfo readContentInfo(byte[] input)
           
(package private) static ContentInfo readContentInfo(java.io.InputStream input)
           
static byte[] streamToByteArray(java.io.InputStream in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNTIME

private static final java.lang.Runtime RUNTIME
Constructor Detail

CMSUtils

CMSUtils()
Method Detail

getMaximumMemory

static int getMaximumMemory()
Returns:

readContentInfo

static ContentInfo readContentInfo(byte[] input)
                            throws CMSException
Parameters:
input -
Returns:
Throws:
CMSException

readContentInfo

static ContentInfo readContentInfo(java.io.InputStream input)
                            throws CMSException
Parameters:
input -
Returns:
Throws:
CMSException

getCertificatesFromStore

static java.util.List getCertificatesFromStore(java.security.cert.CertStore certStore)
                                        throws java.security.cert.CertStoreException,
                                               CMSException
Parameters:
certStore -
Returns:
Throws:
java.security.cert.CertStoreException
CMSException

getCRLsFromStore

static java.util.List getCRLsFromStore(java.security.cert.CertStore certStore)
                                throws java.security.cert.CertStoreException,
                                       CMSException
Parameters:
certStore -
Returns:
Throws:
java.security.cert.CertStoreException
CMSException

createBerSetFromList

static ASN1Set createBerSetFromList(java.util.List derObjects)
Parameters:
derObjects -
Returns:

createDerSetFromList

static ASN1Set createDerSetFromList(java.util.List derObjects)
Parameters:
derObjects -
Returns:

readContentInfo

private static ContentInfo readContentInfo(ASN1InputStream in)
                                    throws CMSException
Parameters:
in -
Returns:
Throws:
CMSException

streamToByteArray

public static byte[] streamToByteArray(java.io.InputStream in)
                                throws java.io.IOException
Parameters:
in -
Returns:
Throws:
java.io.IOException


Copyright © 2013 Gamma Technologies. All Rights Reserved.