类 ScramShaSaslClient
- java.lang.Object
-
- com.mysql.cj.sasl.ScramShaSaslClient
-
- 所有已实现的接口:
SaslClient
- 直接已知子类:
ScramSha1SaslClient,ScramSha256SaslClient
public abstract class ScramShaSaslClient extends Object implements SaslClient
ASaslClientimplementation for SCRAM-SHA mechanisms as specified in RFC 5802. Subclasses of this class must implement the hashing algorithms for the corresponding authentication mechanism.
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 protected static classScramShaSaslClient.ScramExchangeStage
-
字段概要
字段 修饰符和类型 字段 说明 protected StringauthenticationIdprotected StringauthorizationIdprotected static byte[]CLIENT_KEYprotected StringclientFirstMessageBareprotected StringcNonceprotected static StringGS2_CBIND_FLAGprotected Stringgs2Headerprotected static intMINIMUM_ITERATIONSprotected Stringpasswordprotected ScramShaSaslClient.ScramExchangeStagescramStageprotected static byte[]SERVER_KEYprotected byte[]serverSignature
-
构造器概要
构造器 构造器 说明 ScramShaSaslClient(String authorizationId, String authenticationId, String password)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voiddispose()byte[]evaluateChallenge(byte[] challenge)ObjectgetNegotiatedProperty(String propName)booleanhasInitialResponse()booleanisComplete()byte[]unwrap(byte[] incoming, int offset, int len)byte[]wrap(byte[] outgoing, int offset, int len)-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 javax.security.sasl.SaslClient
getMechanismName
-
-
-
-
字段详细资料
-
MINIMUM_ITERATIONS
protected static final int MINIMUM_ITERATIONS
- 另请参阅:
- 常量字段值
-
CLIENT_KEY
protected static final byte[] CLIENT_KEY
-
SERVER_KEY
protected static final byte[] SERVER_KEY
-
authorizationId
protected String authorizationId
-
authenticationId
protected String authenticationId
-
password
protected String password
-
scramStage
protected ScramShaSaslClient.ScramExchangeStage scramStage
-
cNonce
protected String cNonce
-
gs2Header
protected String gs2Header
-
clientFirstMessageBare
protected String clientFirstMessageBare
-
serverSignature
protected byte[] serverSignature
-
-
构造器详细资料
-
ScramShaSaslClient
public ScramShaSaslClient(String authorizationId, String authenticationId, String password) throws SaslException
- 抛出:
SaslException
-
-
方法详细资料
-
hasInitialResponse
public boolean hasInitialResponse()
- 指定者:
hasInitialResponse在接口中SaslClient
-
evaluateChallenge
public byte[] evaluateChallenge(byte[] challenge) throws SaslException- 指定者:
evaluateChallenge在接口中SaslClient- 抛出:
SaslException
-
isComplete
public boolean isComplete()
- 指定者:
isComplete在接口中SaslClient
-
unwrap
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException- 指定者:
unwrap在接口中SaslClient- 抛出:
SaslException
-
wrap
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException- 指定者:
wrap在接口中SaslClient- 抛出:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
- 指定者:
getNegotiatedProperty在接口中SaslClient
-
dispose
public void dispose() throws SaslException- 指定者:
dispose在接口中SaslClient- 抛出:
SaslException
-
-