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: 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: 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: 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: API level 1

Old-style UUID for compatibility with previous versions

Since
API level 1
MDM 1.0

public String displayName

Since: API level 1

The display name of the account

Since
API level 1
MDM 1.0

public String emailAddress

Since: API level 1

The email address corresponding to the account

Since
API level 1
MDM 1.0

public int emailBodyTruncationSize

Since: API level 11

The default sync email body trunctaion size for the account

Since
API level 11
MDM 5.0

public boolean emailNotificationVibrateAlways

Since: API level 1

Flag as notification to always vibrate on incoming email

Since
API level 1
MDM 1.0

public int emailRoamingBodyTruncationSize

Since: 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: 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: 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: 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: API level 1

Receiving authentication data

Since
API level 1
MDM 1.0

public HostAuth hostAuthSend

Since: API level 1

Sending authentication data

Since
API level 1
MDM 1.0

public int id

Since: API level 1

The account Id of the account

Since
API level 1
MDM 1.0

public boolean isDefault

Since: API level 1

Default account

Since
API level 1
MDM 1.0

public int newMessageCount

Since: 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: 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: 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: 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: 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: 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: API level 1

Protocol version of Microsoft Exchange ActiveSync (EAS only)

Since
API level 1
MDM 1.0

public String ringtoneUri

Since: API level 1

Ringtone to use with the account

Since
API level 1
MDM 1.0

public int roamingSyncSchedule

Since: API level 2

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

Since
API level 2
MDM 2.0

public int securityFlags

Since: API level 1

Flags defining security (provisioning) requirements of the account

Since
API level 1
MDM 1.0

public String securitySyncKey

Since: 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: API level 1

User name for outgoing messages

Since
API level 1
MDM 1.0

public String signature

Since: API level 1

Signature to use with the account

Since
API level 1
MDM 1.0

public boolean syncCalendar

Since: API level 2

Sync Calendar from Microsoft Exchange server

Since
API level 2
MDM 2.0

public int syncCalendarAge

Since: 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: API level 2

Sync Contacts from Microsoft Exchange server

Since
API level 2
MDM 2.0

public int syncInterval

Since: API level 1

The default sync frequency in minutes for the account

Since
API level 1
MDM 1.0

public String syncKey

Since: 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: 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: 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: API level 2

Sync Tasks from Microsoft Exchange server

Since
API level 2
MDM 2.0

Public Constructors

public Account ()

Since: API level 1

Default constructor

Since
API level 1
MDM 1.0