Class AuthInfo
java.lang.Object
net.rubyeye.xmemcached.auth.AuthInfo
Authentication infomation for a memcached server
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate final CallbackHandlerprivate final intprivate final String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthInfoGet a typical auth descriptor for CRAM-MD5 auth with the given username and password.intString[]voidbooleanbooleanisValid()static AuthInfoGet a typical auth descriptor for PLAIN auth with the given username and password.static AuthInfoGet a typical auth descriptor for CRAM-MD5 or PLAIN auth with the given username and password.
-
Field Details
-
callbackHandler
-
mechanisms
-
maxAttempts
private final int maxAttempts -
attempts
private int attempts
-
-
Constructor Details
-
AuthInfo
-
-
Method Details
-
isValid
public boolean isValid() -
isFirstTime
public boolean isFirstTime() -
increaseAttempts
public void increaseAttempts() -
getMaxAttempts
public int getMaxAttempts() -
plain
-
cramMD5
-
typical
-
getCallbackHandler
-
getMechanisms
-