Mercury-IM/entity/src/main/java/org/mercury_im/messenger/entity/Account.java

41 lines
748 B
Java

package org.mercury_im.messenger.entity;
/**
* User Account entity.
*
* An implementation of this entity can be found as {@link IAccount}.
*/
public interface Account {
void setId(long id);
long getId();
void setAddress(String address);
String getAddress();
void setPassword(String password);
String getPassword();
@Deprecated
void setAuthentication(AuthMethod authentication);
@Deprecated
AuthMethod getAuthentication();
void setEnabled(boolean enabled);
boolean isEnabled();
/**
* Interface to allow protocol-specific authentication information, like passwords, parameters,
* certificates etc.
*/
interface AuthMethod {
String getPassword();
}
}