Class SaslAuthCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<SaslAuthCommand>
-
- de.caluga.morphium.driver.commands.auth.SaslAuthCommand
-
public class SaslAuthCommand extends MongoCommand<SaslAuthCommand>
-
-
Constructor Summary
Constructors Constructor Description SaslAuthCommand(MongoConnection c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()intexecuteAsync()StringgetCommandName()StringgetMechanism()StringgetPassword()StringgetUser()SaslAuthCommandsetMechanism(String mechanism)SaslAuthCommandsetPassword(String password)SaslAuthCommandsetUser(String user)-
Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
asMap, clear, fromMap, getColl, getComment, getConnection, getDb, getMetaData, releaseConnection, setColl, setComment, setConnection, setDb, setMetaData, setMetaData
-
-
-
-
Constructor Detail
-
SaslAuthCommand
public SaslAuthCommand(MongoConnection c)
-
-
Method Detail
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<SaslAuthCommand>
-
executeAsync
public int executeAsync() throws MorphiumDriverException- Overrides:
executeAsyncin classMongoCommand<SaslAuthCommand>- Throws:
MorphiumDriverException
-
getUser
public String getUser()
-
setUser
public SaslAuthCommand setUser(String user)
-
getPassword
public String getPassword()
-
setPassword
public SaslAuthCommand setPassword(String password)
-
getMechanism
public String getMechanism()
-
setMechanism
public SaslAuthCommand setMechanism(String mechanism)
-
execute
public void execute() throws MorphiumDriverException, com.ongres.scram.common.exception.ScramParseException, NoSuchAlgorithmException, com.ongres.scram.common.exception.ScramInvalidServerSignatureException, com.ongres.scram.common.exception.ScramServerErrorException- Throws:
MorphiumDriverExceptioncom.ongres.scram.common.exception.ScramParseExceptionNoSuchAlgorithmExceptioncom.ongres.scram.common.exception.ScramInvalidServerSignatureExceptioncom.ongres.scram.common.exception.ScramServerErrorException
-
-