Package de.adrianlange.mcd.model.impl
Class MozillaAutoconfMailserverServiceImpl
- java.lang.Object
-
- de.adrianlange.mcd.model.impl.AbstractMailserverService
-
- de.adrianlange.mcd.model.impl.MozillaAutoconfMailserverServiceImpl
-
- All Implemented Interfaces:
MailserverService,MozillaAutoconfMailserverService
public class MozillaAutoconfMailserverServiceImpl extends AbstractMailserverService implements MozillaAutoconfMailserverService
-
-
Constructor Summary
Constructors Constructor Description MozillaAutoconfMailserverServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllOAuth2s(Collection<OAuth2> oAuth2s)voidaddAuthentication(Authentication authentication)Set<Authentication>getAuthentications()Returns the authentication methods to use.Set<OAuth2>getOAuth2s()Returns OAuth2 configuration to use ifMozillaAutoconfMailserverService.getAuthentications()returnsAuthentication.OAUTH2.StringgetPassword()Returns the password of the user or null if none is specified.StringgetUsername()Returns the username to use or null if not specified.voidsetPassword(String password)voidsetUsername(String username)StringtoString()-
Methods inherited from class de.adrianlange.mcd.model.impl.AbstractMailserverService
getConfigurationMethod, getHost, getPort, getProtocol, getSocketType, setConfigurationMethod, setHost, setPort, setProtocol, setSocketType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.adrianlange.mcd.model.MailserverService
getConfigurationMethod, getHost, getPort, getProtocol, getSocketType
-
-
-
-
Method Detail
-
getUsername
public String getUsername()
Description copied from interface:MozillaAutoconfMailserverServiceReturns the username to use or null if not specified.May contain placeholders, see
MozillaAutoconfMailserverServicefor more information.- Specified by:
getUsernamein interfaceMozillaAutoconfMailserverService- Returns:
- Username, placeholder for username or null
-
setUsername
public void setUsername(String username)
-
getPassword
public String getPassword()
Description copied from interface:MozillaAutoconfMailserverServiceReturns the password of the user or null if none is specified.May contain placeholders, see
MozillaAutoconfMailserverServicefor more information.- Specified by:
getPasswordin interfaceMozillaAutoconfMailserverService- Returns:
- Password, placeholder for password or null
-
setPassword
public void setPassword(String password)
-
getAuthentications
public Set<Authentication> getAuthentications()
Description copied from interface:MozillaAutoconfMailserverServiceReturns the authentication methods to use. In most cases this set only contains one (or zero) elements, but can also contain more entries to provide a fallback if for example OAuth2 is not supported by a client.- Specified by:
getAuthenticationsin interfaceMozillaAutoconfMailserverService- Returns:
- Authentication method or an empty set if none is specified.
-
addAuthentication
public void addAuthentication(Authentication authentication)
-
getOAuth2s
public Set<OAuth2> getOAuth2s()
Description copied from interface:MozillaAutoconfMailserverServiceReturns OAuth2 configuration to use ifMozillaAutoconfMailserverService.getAuthentications()returnsAuthentication.OAUTH2.- Specified by:
getOAuth2sin interfaceMozillaAutoconfMailserverService- Returns:
- OAuth2 configurations or an empty set of none is specified.
-
addAllOAuth2s
public void addAllOAuth2s(Collection<OAuth2> oAuth2s)
-
toString
public String toString()
- Overrides:
toStringin classAbstractMailserverService
-
-