Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isEncrypted()
boolean
isPropertyEncrypted(java.lang.String propName)
Test if the property is encrypted.boolean
needsPassword()
void
setContentPassword(java.lang.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(java.lang.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(java.lang.String password, boolean storePassword) throws java.io.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 userstorePassword
- Indicates that the password should be remembered e.g. by writing into options or the file itself.- Throws:
java.io.IOException
-
-