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 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 user
        storePassword - Indicates that the password should be remembered e.g. by writing into options or the file itself.
        Throws:
        java.io.IOException