kz.gamma.hardware.cms
Class CMSUtils
java.lang.Object
kz.gamma.hardware.cms.CMSUtils
class CMSUtils
- extends java.lang.Object
|
Field Summary |
private static java.lang.Runtime |
RUNTIME
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RUNTIME
private static final java.lang.Runtime RUNTIME
CMSUtils
CMSUtils()
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.