Class ParsecPasswordPlugin
java.lang.Object
org.mariadb.jdbc.plugin.authentication.standard.ParsecPasswordPlugin
- All Implemented Interfaces:
AuthenticationPlugin
Parsec password plugin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private byte[]
private static byte[]
private byte[]
-
Constructor Summary
ConstructorsConstructorDescriptionParsecPasswordPlugin
(String authenticationData, byte[] seed) Initialization. -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
combineArray
(byte[] arr1, byte[] arr2) byte[]
hash
(Credential credential) Return Hashboolean
Can plugins is MitM-proof, permitting returning HASHProcess parsec password plugin authentication.
-
Field Details
-
pkcs8Ed25519header
private static byte[] pkcs8Ed25519header -
authenticationData
-
seed
private byte[] seed -
hash
private byte[] hash
-
-
Constructor Details
-
ParsecPasswordPlugin
Initialization.- Parameters:
authenticationData
- authentication data (password/token)seed
- server provided seed
-
-
Method Details
-
process
public ReadableByteBuf process(Writer out, Reader in, Context context) throws SQLException, IOException Process parsec password plugin authentication. see https://mariadb.com/kb/en/connection/#parsec-plugin- Specified by:
process
in interfaceAuthenticationPlugin
- Parameters:
out
- out streamin
- in streamcontext
- connection context- Returns:
- response packet
- Throws:
IOException
- if socket errorSQLException
- if plugin exception
-
isMitMProof
public boolean isMitMProof()Description copied from interface:AuthenticationPlugin
Can plugins is MitM-proof, permitting returning HASH- Specified by:
isMitMProof
in interfaceAuthenticationPlugin
- Returns:
- true if permitted
-
hash
Return Hash- Specified by:
hash
in interfaceAuthenticationPlugin
- Parameters:
credential
- Credential- Returns:
- hash
-
combineArray
private byte[] combineArray(byte[] arr1, byte[] arr2)
-