|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
A listener class for persistent content events.
PersistentContent| Field Summary | ||
|
static int |
PERSISTENT_CONTENT_LOCKED_INSECURE
Indicates that data on the device is not secured, i.e., the device is locked but some data may be on the device in plaintext format. |
|
static int |
PERSISTENT_CONTENT_LOCKED_SECURE
Indicates that data on the device is secured, i.e., the device is locked and all data that should be encoded is encoded. |
|
static int |
PERSISTENT_CONTENT_LOCKING
Indicates that the device is locking. |
|
static int |
PERSISTENT_CONTENT_UNLOCKED
Indicates that the device is currently unlocked. |
| Method Summary | ||
|
void |
persistentContentModeChanged(int generation)
Invoked when the persistent content mode changes, i.e., the Content Protection/Compression security settings on the device change. |
|
void |
persistentContentStateChanged(int state)
Invoked when the persistent content state changes (e.g., the device changes from locked to unlocked). |
| Field Detail |
public static final int PERSISTENT_CONTENT_LOCKED_INSECURE
This occurs if data is received while the device is locked.
public static final int PERSISTENT_CONTENT_LOCKED_SECURE
public static final int PERSISTENT_CONTENT_LOCKING
Content may be encoded when the device is unlocked or locked. However, content that was encoded using encryption may not be decoded if the device is locked.
public static final int PERSISTENT_CONTENT_UNLOCKED
Content may be encoded when the device is unlocked or locked. However, content that was encoded using encryption may not be decoded if the device is locked.
| Method Detail |
public void persistentContentModeChanged(int generation)
Listeners should call PersistentContent.checkEncoding(java.lang.Object) to see
if they need to call PersistentContent.reEncode(java.lang.Object).
Listeners should periodically compare the generation parameter to
PersistentContent.getModeGeneration(). If they are different, then
the listeners should terminate their checkEncoding/reEncoding loops because the
security settings on the device have changed and they will have to be rechecked
and/or re-encoded anyway.
generation - Used to determine if the user has changed the content
protection settings since the listener was notified.public void persistentContentStateChanged(int state)
state - New state.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2007 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.