Class KeyAlgoLengthOrSpec
- java.lang.Object
-
- de.trustable.ca3s.core.service.dto.KeyAlgoLengthOrSpec
-
public class KeyAlgoLengthOrSpec extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static KeyAlgoLengthOrSpecDilithium_2static KeyAlgoLengthOrSpecDilithium_3static KeyAlgoLengthOrSpecDilithium_5static KeyAlgoLengthOrSpecFalcon_1024static KeyAlgoLengthOrSpecFalcon_512static KeyAlgoLengthOrSpecRSA_2048static KeyAlgoLengthOrSpecRSA_4096
-
Constructor Summary
Constructors Constructor Description KeyAlgoLengthOrSpec()KeyAlgoLengthOrSpec(String algoName, int keyLength)KeyAlgoLengthOrSpec(String algoGroup, String algoName, String contentBuilderName, String providerName, int keyLength, AlgorithmParameterSpec algorithmParameterSpec)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.operator.jcajce.JcaContentSignerBuilderbuildJcaContentSignerBuilder()static KeyAlgoLengthOrSpecfrom(String value)static KeyAlgoLengthOrSpecfrom(AlgorithmParameterSpec spec)KeyPairgenerateKeyPair()StringgetAlgoGroup()StringgetAlgoName()static StringgetAlgorithmName(PublicKey pk)AlgorithmParameterSpecgetAlgorithmParameterSpec()intgetKeyLength()StringtoString()
-
-
-
Field Detail
-
RSA_2048
public static final KeyAlgoLengthOrSpec RSA_2048
-
RSA_4096
public static final KeyAlgoLengthOrSpec RSA_4096
-
Dilithium_2
public static final KeyAlgoLengthOrSpec Dilithium_2
-
Dilithium_3
public static final KeyAlgoLengthOrSpec Dilithium_3
-
Dilithium_5
public static final KeyAlgoLengthOrSpec Dilithium_5
-
Falcon_512
public static final KeyAlgoLengthOrSpec Falcon_512
-
Falcon_1024
public static final KeyAlgoLengthOrSpec Falcon_1024
-
-
Constructor Detail
-
KeyAlgoLengthOrSpec
public KeyAlgoLengthOrSpec()
-
KeyAlgoLengthOrSpec
public KeyAlgoLengthOrSpec(String algoName, int keyLength)
-
KeyAlgoLengthOrSpec
public KeyAlgoLengthOrSpec(String algoGroup, String algoName, String contentBuilderName, String providerName, int keyLength, AlgorithmParameterSpec algorithmParameterSpec)
-
-
Method Detail
-
from
public static KeyAlgoLengthOrSpec from(AlgorithmParameterSpec spec) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
from
public static KeyAlgoLengthOrSpec from(String value)
-
buildJcaContentSignerBuilder
public org.bouncycastle.operator.jcajce.JcaContentSignerBuilder buildJcaContentSignerBuilder()
-
generateKeyPair
public KeyPair generateKeyPair() throws NoSuchAlgorithmException, InvalidAlgorithmParameterException, NoSuchProviderException
-
getAlgoGroup
public String getAlgoGroup()
-
getAlgoName
public String getAlgoName()
-
getKeyLength
public int getKeyLength()
-
getAlgorithmParameterSpec
public AlgorithmParameterSpec getAlgorithmParameterSpec()
-
-