Class UnsignedAppletActionStorageImpl

    • Field Detail

      • LOG

        private static final Logger LOG
      • readVersion

        private java.lang.String readVersion
      • lineCounter

        private int lineCounter
      • loadingDisabled

        private boolean loadingDisabled
    • Constructor Detail

      • UnsignedAppletActionStorageImpl

        public UnsignedAppletActionStorageImpl​(java.io.File location)
    • Method Detail

      • writeContents

        public void writeContents()
                           throws java.io.IOException
        Description copied from class: LockingReaderWriter
        Writes stored contents to file. Assumes lock is held.
        Overrides:
        writeContents in class LockingReaderWriter
        Throws:
        java.io.IOException
      • readContents

        protected void readContents()
                             throws java.io.IOException
        Description copied from class: LockingReaderWriter
        Reads contents from file. Assumes lock is held.
        Overrides:
        readContents in class LockingReaderWriter
        Throws:
        java.io.IOException
      • writeContent

        public void writeContent​(java.io.BufferedWriter bw)
                          throws java.io.IOException
        Specified by:
        writeContent in class LockingReaderWriter
        Throws:
        java.io.IOException
      • getMatchingItem

        public UnsignedAppletActionEntry getMatchingItem​(java.lang.String documentBase,
                                                         java.lang.String codeBase,
                                                         java.util.List<java.lang.String> archives,
                                                         java.lang.Class<? extends RememberableDialog> id)
        Description copied from interface: UnsignedAppletActionStorage
        This methods iterates through records in net.sourceforge.jnlp.config.DeploymentConfiguration#getAppletTrustUserSettingsPath or net.sourceforge.jnlp.config.DeploymentConfiguration#getAppletTrustGlobalSettingsPath, and is matching regexes saved here against params. So parameters here are NOT regexes, but are matched against saved regexes.

        null or empty values are dangerously ignored, user, be aware of it. eg: match only codeBase will be null someCodeBase null null match only documentBase will be someDocBase null null null match only applet not regarding code or document base will be null null mainClass archives.

        Specified by:
        getMatchingItem in interface UnsignedAppletActionStorage
        id - of AppletSecurityAction's ExecuteAppletAction to be used for "strong" search
        Returns:
        a matching unsigned applet action entry
      • getMatchingItems

        public java.util.List<UnsignedAppletActionEntry> getMatchingItems​(java.lang.String documentBase,
                                                                          java.lang.String codeBase,
                                                                          java.util.List<java.lang.String> archives)
      • isMatching

        private boolean isMatching​(UnsignedAppletActionEntry unsignedAppletActionEntry,
                                   java.lang.String documentBase,
                                   java.lang.String codeBase,
                                   java.util.List<java.lang.String> archives)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareArchives

        private boolean compareArchives​(java.util.List<java.lang.String> archives,
                                        java.util.List<java.lang.String> saved)
      • actOnVersionLoad

        private void actOnVersionLoad()
      • actOnNoVersionLoad

        private void actOnNoVersionLoad()
      • backupOldFile

        private void backupOldFile​(int version,
                                   java.io.File backingFile)