public class ProviderContext.Context extends Object
| Constructor and Description |
|---|
ProviderContext.Context() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCipherProvider()
Gets the the JCA provider to be used for relevant
Cipher operations. |
String |
getGeneralProvider()
Gets the general JCA provider to be used for all relevant operations when
a more specific one isn't set.
|
String |
getKeyAgreementProvider()
Gets the the JCA provider to be used for relevant
KeyAgreement operations. |
String |
getKeyFactoryProvider()
Gets the the JCA provider to be used for relevant
KeyFactory operations. |
String |
getKeyPairGeneratorProvider()
Gets the the JCA provider to be used for relevant
KeyPairGenerator operations. |
String |
getMacProvider()
Gets the the JCA provider to be used for relevant
Mac operations. |
String |
getMessageDigestProvider()
Gets the the JCA provider to be used for relevant
MessageDigest operations. |
ProviderContext.SignatureAlgorithmOverride |
getSignatureAlgorithmOverride()
Gets the the algorithm info (name and parameter spec) to be used as overrides for relevant
Signature operations. |
String |
getSignatureProvider()
Gets the the JCA provider to be used for relevant
Signature operations. |
void |
setCipherProvider(String cipherProvider)
Sets the the JCA provider to be used for relevant
Cipher operations. |
void |
setGeneralProvider(String generalProvider)
Sets the general JCA provider to be used for all relevant operations when
a more specific one isn't set.
|
void |
setKeyAgreementProvider(String keyAgreementProvider)
Sets the the JCA provider to be used for relevant
KeyAgreement operations. |
void |
setKeyFactoryProvider(String keyFactoryProvider)
Sets the the JCA provider to be used for relevant
KeyFactory operations. |
void |
setKeyPairGeneratorProvider(String keyPairGeneratorProvider)
Sets the the JCA provider to be used for relevant
KeyPairGenerator operations. |
void |
setMacProvider(String macProvider)
Sets the the JCA provider to be used for relevant
Mac operations. |
void |
setMessageDigestProvider(String messageDigestProvider)
Sets the the JCA provider to be used for relevant
MessageDigest operations. |
void |
setSignatureAlgorithmOverride(ProviderContext.SignatureAlgorithmOverride signatureAlgorithmOverride)
Sets the algorithm info (name and parameter spec) to be used as overrides for relevant
Signature operations. |
void |
setSignatureProvider(String signatureProvider)
Sets the the JCA provider to be used for relevant
Signature operations. |
public String getGeneralProvider()
public void setGeneralProvider(String generalProvider)
null to use the system configured
providers.generalProvider - the provider namepublic String getKeyPairGeneratorProvider()
KeyPairGenerator operations.null for the the system configured providers.public void setKeyPairGeneratorProvider(String keyPairGeneratorProvider)
KeyPairGenerator operations.
null to use the system configured providers.keyPairGeneratorProvider - the provider namepublic String getKeyAgreementProvider()
KeyAgreement operations.null for the the system configured providers.public void setKeyAgreementProvider(String keyAgreementProvider)
KeyAgreement operations.
null to use the system configured providers.keyAgreementProvider - the provider namepublic String getCipherProvider()
Cipher operations.null for the the system configured providers.public void setCipherProvider(String cipherProvider)
Cipher operations.
null to use the system configured providers.cipherProvider - the provider namepublic String getSignatureProvider()
Signature operations.null for the the system configured providers.public void setSignatureProvider(String signatureProvider)
Signature operations.
null to use the system configured providers.signatureProvider - the provider namepublic ProviderContext.SignatureAlgorithmOverride getSignatureAlgorithmOverride()
Signature operations.
Null means no override is done and the normal algorithm details are used.public void setSignatureAlgorithmOverride(ProviderContext.SignatureAlgorithmOverride signatureAlgorithmOverride)
Signature operations.
The need for this should be quite rare but it could be useful in cases where different providers are using different
names for the same algorithm - and there have been some naming inconsistencies with RSAPSS where RSASSA-PSS + AlgorithmParameterSpec
was used when PSS support was added to the default JRE but providers that supported PSS earlier used something like SHA256withRSAandMGF1).signatureAlgorithmOverride - with the algorithm info. Null indicates to use the defaults (and is the default in and of itself).public String getMacProvider()
Mac operations.null for the the system configured providers.public void setMacProvider(String macProvider)
Mac operations.
null to use the system configured providers.macProvider - the provider namepublic String getMessageDigestProvider()
MessageDigest operations.null for the the system configured providers.public void setMessageDigestProvider(String messageDigestProvider)
MessageDigest operations.
null to use the system configured providers.messageDigestProvider - the provider namepublic String getKeyFactoryProvider()
KeyFactory operations.null for the the system configured providers.public void setKeyFactoryProvider(String keyFactoryProvider)
KeyFactory operations.
null to use the system configured providers.keyFactoryProvider - the provider nameCopyright © 2021. All rights reserved.