arta.synergy.ejb.crl
Class tmp

java.lang.Object
  extended by arta.synergy.ejb.crl.tmp

public class tmp
extends java.lang.Object

Created with IntelliJ IDEA. User: mgetmanov Date: 27.12.13 Time: 9:31


Field Summary
static int CERTIFICATE_VALID
           
static int DISTRIBUTION_CENTER_NOT_FOUND
           
static int DISTRIBUTION_CENTERS_ERROR
           
 
Constructor Summary
tmp()
           
 
Method Summary
static java.lang.String[] getCertInfo()
           
static java.lang.String[] getCertInfo(java.security.KeyStore store)
           
static java.lang.String getKeyPath()
           
static java.lang.String getPassword()
           
static java.security.PublicKey getPublicKey(java.security.KeyStore store, java.lang.String alias)
           
static java.lang.String getSIG_ALG()
           
static byte[] getSigned(java.security.KeyStore store, java.lang.String alias, java.lang.String password, byte[] data)
           
static byte[] getSourceData()
           
static void main(java.lang.String[] arg)
           
static void setKeyPath(java.lang.String keyPath)
           
static void setPassword(java.lang.String password)
           
static void setSIG_ALG1(java.lang.String SIG_ALG)
           
static void setSourceData(byte[] sourceData)
           
static boolean verifyPkcs7(byte[] dataToVerify, java.security.PublicKey pk, byte[] souurce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DISTRIBUTION_CENTER_NOT_FOUND

public static final int DISTRIBUTION_CENTER_NOT_FOUND
See Also:
Constant Field Values

DISTRIBUTION_CENTERS_ERROR

public static final int DISTRIBUTION_CENTERS_ERROR
See Also:
Constant Field Values

CERTIFICATE_VALID

public static final int CERTIFICATE_VALID
See Also:
Constant Field Values
Constructor Detail

tmp

public tmp()
Method Detail

main

public static void main(java.lang.String[] arg)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getSigned

public static byte[] getSigned(java.security.KeyStore store,
                               java.lang.String alias,
                               java.lang.String password,
                               byte[] data)
                        throws java.security.NoSuchAlgorithmException,
                               java.security.NoSuchProviderException,
                               CMSException,
                               java.io.IOException,
                               java.security.KeyStoreException,
                               java.security.UnrecoverableKeyException,
                               java.security.InvalidKeyException,
                               java.security.SignatureException
Throws:
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
CMSException
java.io.IOException
java.security.KeyStoreException
java.security.UnrecoverableKeyException
java.security.InvalidKeyException
java.security.SignatureException

getPublicKey

public static java.security.PublicKey getPublicKey(java.security.KeyStore store,
                                                   java.lang.String alias)
                                            throws java.security.KeyStoreException,
                                                   java.security.cert.CertificateEncodingException,
                                                   java.security.UnrecoverableKeyException,
                                                   java.security.NoSuchAlgorithmException
Throws:
java.security.KeyStoreException
java.security.cert.CertificateEncodingException
java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException

getCertInfo

public static java.lang.String[] getCertInfo(java.security.KeyStore store)
                                      throws java.security.KeyStoreException,
                                             java.security.cert.CertificateParsingException,
                                             java.io.IOException,
                                             java.security.cert.CertificateEncodingException,
                                             java.security.UnrecoverableKeyException,
                                             java.security.NoSuchAlgorithmException
Throws:
java.security.KeyStoreException
java.security.cert.CertificateParsingException
java.io.IOException
java.security.cert.CertificateEncodingException
java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException

getCertInfo

public static java.lang.String[] getCertInfo()
                                      throws java.security.cert.CertificateEncodingException,
                                             java.security.UnrecoverableKeyException,
                                             java.security.NoSuchAlgorithmException,
                                             java.security.KeyStoreException,
                                             java.security.cert.CertificateParsingException,
                                             java.io.IOException
Throws:
java.security.cert.CertificateEncodingException
java.security.UnrecoverableKeyException
java.security.NoSuchAlgorithmException
java.security.KeyStoreException
java.security.cert.CertificateParsingException
java.io.IOException

verifyPkcs7

public static boolean verifyPkcs7(byte[] dataToVerify,
                                  java.security.PublicKey pk,
                                  byte[] souurce)
                           throws java.security.NoSuchAlgorithmException,
                                  java.security.InvalidKeyException,
                                  java.security.SignatureException
Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.SignatureException

getSIG_ALG

public static java.lang.String getSIG_ALG()

setSIG_ALG1

public static void setSIG_ALG1(java.lang.String SIG_ALG)

setKeyPath

public static void setKeyPath(java.lang.String keyPath)
                       throws java.security.KeyStoreException
Throws:
java.security.KeyStoreException

setPassword

public static void setPassword(java.lang.String password)
                        throws java.io.IOException,
                               java.security.cert.CertificateException,
                               java.security.NoSuchAlgorithmException
Throws:
java.io.IOException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException

getSourceData

public static byte[] getSourceData()

setSourceData

public static void setSourceData(byte[] sourceData)

getKeyPath

public static java.lang.String getKeyPath()

getPassword

public static java.lang.String getPassword()


Copyright © 2000 Dummy Corp. All Rights Reserved.