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

33 lines
581 B
Java
Raw Normal View History

package org.mercury_im.messenger.core.entity;
/**
* User Account entity.
*/
public interface Account {
void setId(long id);
long getId();
void setAddress(String address);
String getAddress();
void setAuthentication(AuthMethod authentication);
AuthMethod getAuthentication();
void setEnabled(boolean enabled);
boolean isEnabled();
/**
* Interface to allow protocol-specific authentication information, like passwords, parameters,
* certificates etc.
*/
interface AuthMethod {
String getPassword();
}
}