com.im.ijc.core/1 5.9.4

com.im.ijc.core.api.cookie
Interface SchemaProviderCookie.EncryptionSupport

Enclosing interface:
SchemaProviderCookie

public static interface SchemaProviderCookie.EncryptionSupport

Optional interface, which makes the schema open to ask for an extra password for decrypting some properties.


Method Summary
 boolean isEncrypted()
           
 boolean isPropertyEncrypted(String propName)
          Test if the property is encrypted.
 boolean needsPassword()
           
 void setContentPassword(String password, boolean storePassword)
          Callback method, which sets the password to decode/encode the properties.
 

Method Detail

isEncrypted

boolean isEncrypted()
Returns:
True, if the whole content is encrypted

isPropertyEncrypted

boolean isPropertyEncrypted(String propName)
Test if the property is encrypted.

Parameters:
propName - DBImplSchemaProvider
Returns:
true if this property is encrypted

needsPassword

boolean needsPassword()
Returns:
True, if password is required

setContentPassword

void setContentPassword(String password,
                        boolean storePassword)
                        throws IOException
Callback method, which sets the password to decode/encode the properties. If the password is not correct, an IOException will be thrown.

Parameters:
password - The password entered by the user
storePassword - Indicates that the password should be remembered e.g. by writing into options or the file itself.
Throws:
IOException

com.im.ijc.core/1 5.9.4