Since: Knox API Level 1
public class

Account

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.accounts.Account

Class Overview

This class contains all the account information for a given email (Microsoft Exchange ActiveSync, IMAP, POP) account

Since
API level 1
MDM 1.0

Summary

Constants
int FLAGS_NOTIFY_NEW_MAIL Bit mask to notify new email
int FLAGS_VIBRATE_ALWAYS Bit mask for always vibrate on incoming email notification
int FLAGS_VIBRATE_WHEN_SILENT Bit mask for vibrate only in silent mode on incoming email notification
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public String compatibilityUuid Old-style UUID for compatibility with previous versions
public String displayName The display name of the account
public String emailAddress The email address corresponding to the account
public int emailBodyTruncationSize The default sync email body trunctaion size for the account
public boolean emailNotificationVibrateAlways Flag as notification to always vibrate on incoming email
public int emailRoamingBodyTruncationSize The default sync email body trunctaion size for the account when device is unter the Roaming state.
public int flags Bit mask containing options represented by FLAGS_NOTIFY_NEW_MAIL , FLAGS_VIBRATE_ALWAYS, and FLAGS_VIBRATE_WHEN_SILENT
public long hostAuthKeyRecv A foreign key in the account manager with host, login, password, port, and SSL flags
public long hostAuthKeySend A foreign key in the account manager with host, login, password, port, and SSL flags (optional)
public HostAuth hostAuthRecv Receiving authentication data
public HostAuth hostAuthSend Sending authentication data
public int id The account Id of the account
public boolean isDefault Default account
public int newMessageCount The number of new messages (reported by the sync/download engines)
public int offPeakSyncSchedule Off peak time (in minutes) to sync schedule settings.
public int peakDays Peak days for sync schedule.
public int peakEndMinute Peak end time in minutes.
public int peakStartMinute Peak start time in minutes.
public int peakSyncSchedule Peak time (in minutes) to sync schedule settings.
public String protocolVersion Protocol version of Microsoft Exchange ActiveSync (EAS only)
public String ringtoneUri Ringtone to use with the account
public int roamingSyncSchedule Roaming sync schedule settings.
public int securityFlags Flags defining security (provisioning) requirements of the account
public String securitySyncKey Server-based Microsoft Exchange ActiveSync sync key for the security policies currently enforced
public String senderName User name for outgoing messages
public String signature Signature to use with the account
public boolean syncCalendar Sync Calendar from Microsoft Exchange server
public int syncCalendarAge The default sync lookback period (past time period when syncing calendar) for the account
public boolean syncContacts Sync Contacts from Microsoft Exchange server
public int syncInterval The default sync frequency in minutes for the account
public String syncKey A server-based Microsoft Exchange ActiveSync sync key on an account-wide basis (EAS only)
public int syncLookback The default sync lookback period (past time period when syncing email) for the account
public boolean syncNotes Sync Notes from Microsoft Exchange server
public boolean syncTasks Sync Tasks from Microsoft Exchange server
Public Constructors
Account()
Default constructor
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int FLAGS_NOTIFY_NEW_MAIL

Since: Knox API Level 1

Bit mask to notify new email

Since
API level 1
MDM 1.0
Constant Value: 1 (0x00000001)

public static final int FLAGS_VIBRATE_ALWAYS

Since: Knox API Level 1

Bit mask for always vibrate on incoming email notification

Since
API level 1
MDM 1.0
Constant Value: 2 (0x00000002)

public static final int FLAGS_VIBRATE_WHEN_SILENT

Since: Knox API Level 1

Bit mask for vibrate only in silent mode on incoming email notification

Since
API level 1
MDM 1.0
Constant Value: 64 (0x00000040)

Fields

public String compatibilityUuid

Since: Knox API Level 1

Old-style UUID for compatibility with previous versions

Since
API level 1
MDM 1.0

public String displayName

Since: Knox API Level 1

The display name of the account

Since
API level 1
MDM 1.0

public String emailAddress

Since: Knox API Level 1

The email address corresponding to the account

Since
API level 1
MDM 1.0

public int emailBodyTruncationSize

Since: Knox API Level 11

The default sync email body trunctaion size for the account

Since
API level 11
MDM 5.0

public boolean emailNotificationVibrateAlways

Since: Knox API Level 1

Flag as notification to always vibrate on incoming email

Since
API level 1
MDM 1.0

public int emailRoamingBodyTruncationSize

Since: Knox API Level 11

The default sync email body trunctaion size for the account when device is unter the Roaming state.

Since
API level 11
MDM 5.0

public int flags

Since: Knox API Level 1

Bit mask containing options represented by FLAGS_NOTIFY_NEW_MAIL , FLAGS_VIBRATE_ALWAYS, and FLAGS_VIBRATE_WHEN_SILENT

Since
API level 1
MDM 1.0

public long hostAuthKeyRecv

Since: Knox API Level 1

A foreign key in the account manager with host, login, password, port, and SSL flags

Since
API level 1
MDM 1.0

public long hostAuthKeySend

Since: Knox API Level 1

A foreign key in the account manager with host, login, password, port, and SSL flags (optional)

Since
API level 1
MDM 1.0

public HostAuth hostAuthRecv

Since: Knox API Level 1

Receiving authentication data

Since
API level 1
MDM 1.0

public HostAuth hostAuthSend

Since: Knox API Level 1

Sending authentication data

Since
API level 1
MDM 1.0

public int id

Since: Knox API Level 1

The account Id of the account

Since
API level 1
MDM 1.0

public boolean isDefault

Since: Knox API Level 1

Default account

Since
API level 1
MDM 1.0

public int newMessageCount

Since: Knox API Level 1

The number of new messages (reported by the sync/download engines)

Since
API level 1
MDM 1.0

public int offPeakSyncSchedule

Since: Knox API Level 2

Off peak time (in minutes) to sync schedule settings. Manual (-1), Automatic push (-2), 5 minutes (5), 15 minutes (15), 1 hour (60), 4 hours (240), 12 hours (720)

Since
API level 2
MDM 2.0

public int peakDays

Since: Knox API Level 2

Peak days for sync schedule. For example, 62 (0x3e) for Mon|Tue|Wed|Thu|Fri (0111110)

Since
API level 2
MDM 2.0

public int peakEndMinute

Since: Knox API Level 2

Peak end time in minutes. For example, 5PM = 17hr x 60 = 1020

Since
API level 2
MDM 2.0

public int peakStartMinute

Since: Knox API Level 2

Peak start time in minutes. For example, 8AM = 8hr x 60 = 480

Since
API level 2
MDM 2.0

public int peakSyncSchedule

Since: Knox API Level 2

Peak time (in minutes) to sync schedule settings. Manual (-1) Automatic push (-2) 5 minutes (5) 15 minutes (15) 1 hour (60) 4 hours (240) 12 hours (720)

Since
API level 2
MDM 2.0

public String protocolVersion

Since: Knox API Level 1

Protocol version of Microsoft Exchange ActiveSync (EAS only)

Since
API level 1
MDM 1.0

public String ringtoneUri

Since: Knox API Level 1

Ringtone to use with the account

Since
API level 1
MDM 1.0

public int roamingSyncSchedule

Since: Knox API Level 2

Roaming sync schedule settings. Manual (0) Use sync settings (1)

Since
API level 2
MDM 2.0

public int securityFlags

Since: Knox API Level 1

Flags defining security (provisioning) requirements of the account

Since
API level 1
MDM 1.0

public String securitySyncKey

Since: Knox API Level 1

Server-based Microsoft Exchange ActiveSync sync key for the security policies currently enforced

Since
API level 1
MDM 1.0

public String senderName

Since: Knox API Level 1

User name for outgoing messages

Since
API level 1
MDM 1.0

public String signature

Since: Knox API Level 1

Signature to use with the account

Since
API level 1
MDM 1.0

public boolean syncCalendar

Since: Knox API Level 2

Sync Calendar from Microsoft Exchange server

Since
API level 2
MDM 2.0

public int syncCalendarAge

Since: Knox API Level 11

The default sync lookback period (past time period when syncing calendar) for the account

Since
API level 11
MDM 5.0

public boolean syncContacts

Since: Knox API Level 2

Sync Contacts from Microsoft Exchange server

Since
API level 2
MDM 2.0

public int syncInterval

Since: Knox API Level 1

The default sync frequency in minutes for the account

Since
API level 1
MDM 1.0

public String syncKey

Since: Knox API Level 1

A server-based Microsoft Exchange ActiveSync sync key on an account-wide basis (EAS only)

Since
API level 1
MDM 1.0

public int syncLookback

Since: Knox API Level 1

The default sync lookback period (past time period when syncing email) for the account

Since
API level 1
MDM 1.0

public boolean syncNotes

Since: Knox API Level 2

Sync Notes from Microsoft Exchange server

Since
API level 2
MDM 2.0 NOTE: Notes syncing is not supported yet.

public boolean syncTasks

Since: Knox API Level 2

Sync Tasks from Microsoft Exchange server

Since
API level 2
MDM 2.0

Public Constructors

public Account ()

Since: Knox API Level 1

Default constructor

Since
API level 1
MDM 1.0