Package pro.gravit.launchserver.helper
Class SignHelper
java.lang.Object
pro.gravit.launchserver.helper.SignHelper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHelper output stream that also sends the data to the given.static classHelper output stream that also sends the data to the given. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bouncycastle.cms.CMSSignedDataGeneratorcreateSignedDataGenerator(KeyStore keyStore, String keyAlias, String signAlgo, String keyPassword)Creates the beast that can actually sign the data (for JKS, for other make it).static org.bouncycastle.cms.CMSSignedDataGeneratorcreateSignedDataGenerator(PrivateKey privateKey, Certificate cert, List<Certificate> certChain, String signAlgo)static KeyStoreCreates the KeyStore with given algo.static MessageDigesthasher()
-
Field Details
-
NULL
-
hashFunctionName
- See Also:
- Constant Field Values
-
-
Method Details
-
getStore
Creates the KeyStore with given algo.- Throws:
IOException
-
createSignedDataGenerator
public static org.bouncycastle.cms.CMSSignedDataGenerator createSignedDataGenerator(KeyStore keyStore, String keyAlias, String signAlgo, String keyPassword) throws KeyStoreException, org.bouncycastle.operator.OperatorCreationException, CertificateEncodingException, UnrecoverableKeyException, NoSuchAlgorithmException, org.bouncycastle.cms.CMSExceptionCreates the beast that can actually sign the data (for JKS, for other make it).- Throws:
KeyStoreExceptionorg.bouncycastle.operator.OperatorCreationExceptionCertificateEncodingExceptionUnrecoverableKeyExceptionNoSuchAlgorithmExceptionorg.bouncycastle.cms.CMSException
-
createSignedDataGenerator
public static org.bouncycastle.cms.CMSSignedDataGenerator createSignedDataGenerator(PrivateKey privateKey, Certificate cert, List<Certificate> certChain, String signAlgo) throws org.bouncycastle.operator.OperatorCreationException, CertificateEncodingException, org.bouncycastle.cms.CMSException- Throws:
org.bouncycastle.operator.OperatorCreationExceptionCertificateEncodingExceptionorg.bouncycastle.cms.CMSException
-
hasher
-