Class BouncyCastlePQCProvider
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<java.lang.Object,java.lang.Object>
-
- java.util.Properties
-
- java.security.Provider
-
- org.bouncycastle.pqc.jcajce.provider.BouncyCastlePQCProvider
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.Object,java.lang.Object>
,ConfigurableProvider
public class BouncyCastlePQCProvider extends java.security.Provider implements ConfigurableProvider
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static ProviderConfiguration
CONFIGURATION
static java.lang.String
PROVIDER_NAME
-
Fields inherited from interface org.bouncycastle.jcajce.provider.config.ConfigurableProvider
ACCEPTABLE_EC_CURVES, ADDITIONAL_EC_PARAMETERS, DH_DEFAULT_PARAMS, EC_IMPLICITLY_CA, THREAD_LOCAL_DH_DEFAULT_PARAMS, THREAD_LOCAL_EC_IMPLICITLY_CA
-
-
Constructor Summary
Constructors Constructor Description BouncyCastlePQCProvider()
Construct a new provider.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAlgorithm(java.lang.String key, java.lang.String value)
void
addAlgorithm(java.lang.String type, ASN1ObjectIdentifier oid, java.lang.String className)
void
addAttributes(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> attributeMap)
void
addKeyInfoConverter(ASN1ObjectIdentifier oid, AsymmetricKeyInfoConverter keyInfoConverter)
AsymmetricKeyInfoConverter
getKeyInfoConverter(ASN1ObjectIdentifier oid)
static java.security.PrivateKey
getPrivateKey(PrivateKeyInfo privateKeyInfo)
static java.security.PublicKey
getPublicKey(SubjectPublicKeyInfo publicKeyInfo)
boolean
hasAlgorithm(java.lang.String type, java.lang.String name)
void
setParameter(java.lang.String parameterName, java.lang.Object parameter)
-
Methods inherited from class java.security.Provider
clear, compute, computeIfAbsent, computeIfPresent, configure, elements, entrySet, forEach, get, getInfo, getName, getOrDefault, getProperty, getService, getServices, getVersion, getVersionStr, isConfigured, keys, keySet, load, merge, put, putAll, putIfAbsent, putService, remove, remove, removeService, replace, replace, replaceAll, toString, values
-
-
-
-
Field Detail
-
PROVIDER_NAME
public static java.lang.String PROVIDER_NAME
-
CONFIGURATION
public static final ProviderConfiguration CONFIGURATION
-
-
Method Detail
-
setParameter
public void setParameter(java.lang.String parameterName, java.lang.Object parameter)
- Specified by:
setParameter
in interfaceConfigurableProvider
-
hasAlgorithm
public boolean hasAlgorithm(java.lang.String type, java.lang.String name)
- Specified by:
hasAlgorithm
in interfaceConfigurableProvider
-
addAlgorithm
public void addAlgorithm(java.lang.String key, java.lang.String value)
- Specified by:
addAlgorithm
in interfaceConfigurableProvider
-
addAlgorithm
public void addAlgorithm(java.lang.String type, ASN1ObjectIdentifier oid, java.lang.String className)
- Specified by:
addAlgorithm
in interfaceConfigurableProvider
-
addKeyInfoConverter
public void addKeyInfoConverter(ASN1ObjectIdentifier oid, AsymmetricKeyInfoConverter keyInfoConverter)
- Specified by:
addKeyInfoConverter
in interfaceConfigurableProvider
-
getKeyInfoConverter
public AsymmetricKeyInfoConverter getKeyInfoConverter(ASN1ObjectIdentifier oid)
- Specified by:
getKeyInfoConverter
in interfaceConfigurableProvider
-
addAttributes
public void addAttributes(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> attributeMap)
- Specified by:
addAttributes
in interfaceConfigurableProvider
-
getPublicKey
public static java.security.PublicKey getPublicKey(SubjectPublicKeyInfo publicKeyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
getPrivateKey
public static java.security.PrivateKey getPrivateKey(PrivateKeyInfo privateKeyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
-