com.lenovo.android.app.admin
Class LenovoDevicePolicyManager.LenovoEmailServerInfo

java.lang.Object
  extended by com.lenovo.android.app.admin.LenovoDevicePolicyManager.LenovoEmailServerInfo
Enclosing class:
LenovoDevicePolicyManager

public abstract static class LenovoDevicePolicyManager.LenovoEmailServerInfo
extends java.lang.Object

The Class LenovoEmailServerInfo.


Nested Class Summary
static class LenovoDevicePolicyManager.LenovoEmailServerInfo.EmailType
           
 
Constructor Summary
LenovoDevicePolicyManager.LenovoEmailServerInfo()
           
 
Method Summary
abstract  boolean acceptAllCerts()
          Gets if the email account accepts all certificates Only applies to Exchange accounts
abstract  java.lang.String getDomain()
          Gets the domain name or IP address.
abstract  java.lang.String getPassword()
          Gets the password.
abstract  java.lang.String getServer()
          Gets the server name or IP address.
abstract  LenovoDevicePolicyManager.LenovoEmailServerInfo.EmailType getType()
          Gets the email account type.
abstract  java.lang.String getUsername()
          Gets the user id.
abstract  void setAcceptAllCerts(boolean accept)
          Sets if the email account accepts all certificates Only applies to Exchange accounts
abstract  void setDomain(java.lang.String domain)
          Sets the domain name or IP address.
abstract  void setPassword(java.lang.String password)
          Sets the password.
abstract  void setServer(java.lang.String server)
          Sets the server name or IP address.
abstract  void setType(LenovoDevicePolicyManager.LenovoEmailServerInfo.EmailType type)
          Sets the email account type.
abstract  void setUsername(java.lang.String username)
          Sets the user id.
abstract  void setUseSSL(boolean useSSL)
          Sets if the email account uses SSL Only applies to Exchange accounts
abstract  boolean useSSL()
          Gets if the email account uses SSL Only applies to Exchange accounts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LenovoDevicePolicyManager.LenovoEmailServerInfo

public LenovoDevicePolicyManager.LenovoEmailServerInfo()
Method Detail

acceptAllCerts

public abstract boolean acceptAllCerts()
Gets if the email account accepts all certificates Only applies to Exchange accounts

Returns:
true if the account does accepts all certificates

getDomain

public abstract java.lang.String getDomain()
Gets the domain name or IP address.

Returns:
the domain name or IP address

getPassword

public abstract java.lang.String getPassword()
Gets the password.

Returns:
The password

getServer

public abstract java.lang.String getServer()
Gets the server name or IP address.

Returns:
the server name or IP address

getType

public abstract LenovoDevicePolicyManager.LenovoEmailServerInfo.EmailType getType()
Gets the email account type.

Returns:
the email account type

getUsername

public abstract java.lang.String getUsername()
Gets the user id.

Returns:
The user ID

setAcceptAllCerts

public abstract void setAcceptAllCerts(boolean accept)
Sets if the email account accepts all certificates Only applies to Exchange accounts

Parameters:
accept - Set to true if the account does accept all certificates

setDomain

public abstract void setDomain(java.lang.String domain)
Sets the domain name or IP address.

Parameters:
domain - The domain name or IP address

setPassword

public abstract void setPassword(java.lang.String password)
Sets the password.

Parameters:
password - The password

setServer

public abstract void setServer(java.lang.String server)
Sets the server name or IP address.

Parameters:
serverIP - The server name or IP address

setType

public abstract void setType(LenovoDevicePolicyManager.LenovoEmailServerInfo.EmailType type)
Sets the email account type.

Parameters:
type - The email account type to set

setUsername

public abstract void setUsername(java.lang.String username)
Sets the user id.

Parameters:
userID - The user ID

setUseSSL

public abstract void setUseSSL(boolean useSSL)
Sets if the email account uses SSL Only applies to Exchange accounts

Parameters:
useSSL - Set to true if the account does use SSL

useSSL

public abstract boolean useSSL()
Gets if the email account uses SSL Only applies to Exchange accounts

Returns:
true if the account does use SSL