public abstract class AbstractCredentialsCommand extends Object implements AdHocCommand
| Modifier and Type | Field and Description |
|---|---|
protected AuthRepository |
authRepository |
protected static String |
FIELD_CREDENTIAL_ID |
protected static String |
FIELD_JID |
protected static String |
FIELD_PASSWORD |
protected static String |
FIELD_USERNAME
Deprecated.
|
protected Logger |
log |
| Constructor and Description |
|---|
AbstractCredentialsCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkIfCanModifyJID(AdhHocRequest request,
BareJID jidToModify) |
void |
execute(AdhHocRequest request,
AdHocResponse response) |
boolean |
isAllowedFor(JID jid) |
protected abstract void |
processForm(Form form,
AdhHocRequest request,
AdHocResponse response) |
protected abstract void |
processNoForm(AdhHocRequest request,
AdHocResponse response) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getGroup, getName, getNodeprotected static final String FIELD_JID
protected static final String FIELD_CREDENTIAL_ID
@Deprecated protected static final String FIELD_USERNAME
protected static final String FIELD_PASSWORD
protected final Logger log
@Inject protected AuthRepository authRepository
protected void checkIfCanModifyJID(AdhHocRequest request, BareJID jidToModify) throws AdHocCommandException
AdHocCommandExceptionpublic void execute(AdhHocRequest request, AdHocResponse response) throws AdHocCommandException
execute in interface AdHocCommandAdHocCommandExceptionpublic boolean isAllowedFor(JID jid)
isAllowedFor in interface AdHocCommandprotected abstract void processForm(Form form, AdhHocRequest request, AdHocResponse response) throws TigaseDBException, AdHocCommandException
protected abstract void processNoForm(AdhHocRequest request, AdHocResponse response) throws TigaseDBException
TigaseDBExceptionCopyright © 2004–2021 "Tigase, Inc.". All rights reserved.