Package com.rabbitmq.client
Class JDKSaslConfig.JDKSaslMechanism
- java.lang.Object
-
- com.rabbitmq.client.JDKSaslConfig.JDKSaslMechanism
-
- All Implemented Interfaces:
SaslMechanism
- Enclosing class:
- JDKSaslConfig
private class JDKSaslConfig.JDKSaslMechanism extends java.lang.Object implements SaslMechanism
-
-
Field Summary
Fields Modifier and Type Field Description private javax.security.sasl.SaslClientclient
-
Constructor Summary
Constructors Constructor Description JDKSaslMechanism(javax.security.sasl.SaslClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()The name of this mechanism (e.g.LongStringhandleChallenge(LongString challenge, java.lang.String username, java.lang.String password)Handle one round of challenge-response
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:SaslMechanismThe name of this mechanism (e.g. PLAIN)- Specified by:
getNamein interfaceSaslMechanism- Returns:
- the name
-
handleChallenge
public LongString handleChallenge(LongString challenge, java.lang.String username, java.lang.String password)
Description copied from interface:SaslMechanismHandle one round of challenge-response- Specified by:
handleChallengein interfaceSaslMechanism- Parameters:
challenge- the challenge this round, or null on first round.username- name of userpassword- for username- Returns:
- response
-
-