2013-01-02 2 views

Répondre

-5

Cette possibilité dépend du mode d'authentification appelé assigné au magasin d'enregistrements lors de la création.

J'ai besoin de cette information pour savoir si mon application est sûre.

Pour vous assurer que MIDlets d'autres suites ne peuvent pas supprimer votre disquaire, utilisez AUTHMODE_PRIVATE lors de la création disquaire - en ce sens, ce sera votre option « safe ».


Pour plus de détails, reportez-vous à la documentation de l'API de la méthode RecordStore.openRecordStore(String,boolean,int,boolean):

public static RecordStore openRecordStore(String recordStoreName, 
              boolean createIfNecessary, 
              int authmode, 
              boolean writable) 
            throws RecordStoreException, 
              RecordStoreFullException, 
              RecordStoreNotFoundException 

Open (and possibly create) a record store that can be shared with other 
    MIDlet suites. The RecordStore is owned by the current MIDlet suite. 
    The authorization mode is set when the record store is created, as follows: 

AUTHMODE_PRIVATE - Only allows the MIDlet suite that created the 
    RecordStore to access it. This case behaves identically to 
    openRecordStore(recordStoreName, createIfNecessary). 
AUTHMODE_ANY - Allows any MIDlet to access the RecordStore. Note that 
    this makes your recordStore accessible by any other MIDlet on the device. 
    This could have privacy and security issues depending on the data being shared. 
    Please use carefully... 

Parameters: 
     ... 
    authmode - the mode under which to check or create access. Must be one 
    of AUTHMODE_PRIVATE or AUTHMODE_ANY. This argument is ignored if 
    the RecordStore exists... 
Questions connexes