Top Description Inners Fields Constructors Methods
com.mysql.cj.sasl

public final Class ScramShaSaslProvider

extends Provider
Class Inheritance
Imports
java.security.AccessController, .InvalidParameterException, .NoSuchAlgorithmException, .PrivilegedAction, .Provider, .ProviderException

A SASL provider for the authentication mechanisms SCRAM-SHA-1 and SCRAM-SHA-256, here renamed to MYSQLCJ-SCRAM-SHA-1 and MYSQL-SRAM-SHA-256 respectively to avoid conflicts with future default implementations.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from java.security.Provider:
clearcomputecomputeIfAbsentcomputeIfPresentconfigureelementsentrySetforEachgetgetInfogetNamegetOrDefaultgetPropertygetServicegetServicesgetVersiongetVersionStrisConfiguredkeyskeySetloadmergeputputAllputIfAbsentputServiceremoveremoveremoveServicereplacereplacereplaceAlltoStringvalues

Field Detail

INFOback to summary
private static final String INFO
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.security.Provider.serialVersionUID.

Constructor Detail

ScramShaSaslProviderback to summary
public ScramShaSaslProvider()
com.mysql.cj.sasl back to summary

private final Class ScramShaSaslProvider.ProviderService

extends Service
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
ProviderService(Provider provider, String type, String algorithm, String className)

Method Summary

Modifier and TypeMethod and Description
public Object
newInstance(Object
the value to pass to the constructor, or null if this type of service does not use a constructorParameter.
constructorParameter
)

Overrides java.security.Provider.Service.newInstance.

Return a new instance of the implementation described by this service.

Inherited from java.security.Provider.Service:
getAlgorithmgetAttributegetClassNamegetProvidergetTypesupportsParametertoString

Constructor Detail

ProviderServiceback to summary
public ProviderService(Provider provider, String type, String algorithm, String className)

Method Detail

newInstanceback to summary
public Object newInstance(Object constructorParameter) throws NoSuchAlgorithmException

Overrides java.security.Provider.Service.newInstance.

Doc from java.security.Provider.Service.newInstance.

Return a new instance of the implementation described by this service. The security provider framework uses this method to construct implementations. Applications will typically not need to call it.

The default implementation uses reflection to invoke the standard constructor for this type of service. Security providers can override this method to implement instantiation in a different way. For details and the values of constructorParameter that are valid for the various types of services see the Java Cryptography Architecture (JCA) Reference Guide.

Parameters
constructorParameter:Object

the value to pass to the constructor, or null if this type of service does not use a constructorParameter.

Returns:Object

a new implementation of this service

Annotations
@Override
Exceptions
NoSuchAlgorithmException:
if instantiation failed for any other reason.