Package tigase.db
Class AbstractAuthRepositoryWithCredentials
- java.lang.Object
-
- tigase.db.AbstractAuthRepositoryWithCredentials
-
- All Implemented Interfaces:
AuthRepository,Repository
- Direct Known Subclasses:
TigaseCustomAuth
public abstract class AbstractAuthRepositoryWithCredentials extends java.lang.Object implements AuthRepository
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface tigase.db.AuthRepository
AuthRepository.AccountStatus, AuthRepository.DefaultCredentials, AuthRepository.SingleCredential
-
Nested classes/interfaces inherited from interface tigase.db.Repository
Repository.Meta, Repository.SchemaId
-
-
Field Summary
-
Fields inherited from interface tigase.db.AuthRepository
DATA_KEY, DIGEST_ID_KEY, DIGEST_KEY, MACHANISM_KEY, PASSWORD_KEY, PROTOCOL_KEY, PROTOCOL_VAL_NONSASL, PROTOCOL_VAL_SASL, REALM_KEY, RESULT_KEY, SERVER_NAME_KEY, USER_ID_KEY
-
-
Constructor Summary
Constructors Constructor Description AbstractAuthRepositoryWithCredentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CredentialsDecoderBeangetCredentialsDecoder()protected CredentialsEncoderBeangetCredentialsEncoder()java.lang.StringgetPassword(BareJID user)booleanisMechanismSupported(java.lang.String domain, java.lang.String mechanism)voidsetCredentialsCodecs(CredentialsEncoderBean encoder, CredentialsDecoderBean decoder)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface tigase.db.AuthRepository
addUser, getAccountStatus, getCredentialIds, getCredentials, getResourceUri, getUsernames, getUsersCount, getUsersCount, isUserDisabled, loggedIn, logout, otherAuth, queryAuth, removeCredential, removeUser, setAccountStatus, setUserDisabled, updateCredential, updatePassword
-
Methods inherited from interface tigase.db.Repository
initRepository
-
-
-
-
Method Detail
-
getPassword
public java.lang.String getPassword(BareJID user) throws UserNotFoundException, TigaseDBException
- Specified by:
getPasswordin interfaceAuthRepository- Throws:
UserNotFoundExceptionTigaseDBException
-
isMechanismSupported
public boolean isMechanismSupported(java.lang.String domain, java.lang.String mechanism)- Specified by:
isMechanismSupportedin interfaceAuthRepository
-
setCredentialsCodecs
public void setCredentialsCodecs(CredentialsEncoderBean encoder, CredentialsDecoderBean decoder)
- Specified by:
setCredentialsCodecsin interfaceAuthRepository
-
getCredentialsDecoder
protected CredentialsDecoderBean getCredentialsDecoder()
-
getCredentialsEncoder
protected CredentialsEncoderBean getCredentialsEncoder()
-
-