Reformat to code style.
This commit is contained in:
		@@ -5,7 +5,7 @@ plugins {
 | 
			
		||||
description = 'Master Password Algorithm Implementation'
 | 
			
		||||
 | 
			
		||||
dependencies {
 | 
			
		||||
    compile (group: 'com.lyndir.lhunath.opal', name: 'opal-system', version: '1.6-p11') {
 | 
			
		||||
    compile( group: 'com.lyndir.lhunath.opal', name: 'opal-system', version: '1.6-p11' ) {
 | 
			
		||||
        exclude( module: 'joda-time' )
 | 
			
		||||
    }
 | 
			
		||||
    compile group: 'com.lyndir.lhunath.opal', name: 'opal-crypto', version: '1.6-p11'
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
 | 
			
		||||
    <!-- PROJECT METADATA -->
 | 
			
		||||
 
 | 
			
		||||
@@ -24,9 +24,8 @@ import javax.annotation.Nullable;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @see MPMasterKey.Version#V1
 | 
			
		||||
 *
 | 
			
		||||
 * @author lhunath, 2014-08-30
 | 
			
		||||
 * @see MPMasterKey.Version#V1
 | 
			
		||||
 */
 | 
			
		||||
public class MPAlgorithmV1 extends MPAlgorithmV0 {
 | 
			
		||||
 | 
			
		||||
@@ -37,7 +36,8 @@ public class MPAlgorithmV1 extends MPAlgorithmV0 {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public String sitePasswordFromTemplate(final byte[] masterKey, final byte[] siteKey, final MPResultType resultType, @Nullable final String resultParam) {
 | 
			
		||||
    public String sitePasswordFromTemplate(final byte[] masterKey, final byte[] siteKey, final MPResultType resultType,
 | 
			
		||||
                                           @Nullable final String resultParam) {
 | 
			
		||||
 | 
			
		||||
        // Determine the template.
 | 
			
		||||
        Preconditions.checkState( siteKey.length > 0 );
 | 
			
		||||
 
 | 
			
		||||
@@ -25,9 +25,8 @@ import javax.annotation.Nullable;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @see MPMasterKey.Version#V2
 | 
			
		||||
 * 
 | 
			
		||||
 * @author lhunath, 2014-08-30
 | 
			
		||||
 * @see MPMasterKey.Version#V2
 | 
			
		||||
 */
 | 
			
		||||
public class MPAlgorithmV2 extends MPAlgorithmV1 {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -24,9 +24,8 @@ import java.util.Arrays;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * @see MPMasterKey.Version#V3
 | 
			
		||||
 *
 | 
			
		||||
 * @author lhunath, 2014-08-30
 | 
			
		||||
 * @see MPMasterKey.Version#V3
 | 
			
		||||
 */
 | 
			
		||||
public class MPAlgorithmV3 extends MPAlgorithmV2 {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -17,11 +17,10 @@
 | 
			
		||||
//==============================================================================
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @author lhunath, 15-02-04
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ParametersAreNonnullByDefault package com.lyndir.masterpassword;
 | 
			
		||||
@ParametersAreNonnullByDefault
 | 
			
		||||
package com.lyndir.masterpassword;
 | 
			
		||||
 | 
			
		||||
import javax.annotation.ParametersAreNonnullByDefault;
 | 
			
		||||
 
 | 
			
		||||
@@ -6,13 +6,13 @@ plugins {
 | 
			
		||||
description = 'Master Password Site Model'
 | 
			
		||||
 | 
			
		||||
dependencies {
 | 
			
		||||
    compile     project(':masterpassword-algorithm')
 | 
			
		||||
    compile project( ':masterpassword-algorithm' )
 | 
			
		||||
 | 
			
		||||
    compile     group: 'joda-time', name: 'joda-time', version:'2.4'
 | 
			
		||||
    compile group: 'joda-time', name: 'joda-time', version: '2.4'
 | 
			
		||||
    compileOnly group: 'com.google.auto.value', name: 'auto-value', version: '1.2'
 | 
			
		||||
    apt group: 'com.google.auto.value', name: 'auto-value', version: '1.2'
 | 
			
		||||
 | 
			
		||||
    testCompile group: 'org.testng', name: 'testng', version:'6.8.5'
 | 
			
		||||
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version:'1.1.2'
 | 
			
		||||
    testCompile group: 'org.testng', name: 'testng', version: '6.8.5'
 | 
			
		||||
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
 | 
			
		||||
}
 | 
			
		||||
test.useTestNG()
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
 | 
			
		||||
    <!-- PROJECT METADATA -->
 | 
			
		||||
 
 | 
			
		||||
@@ -180,7 +180,8 @@ public class MPFileSite extends MPSite {
 | 
			
		||||
                this.loginContent = null;
 | 
			
		||||
            else
 | 
			
		||||
                this.loginContent = masterKey.siteState(
 | 
			
		||||
                        siteName, MPAlgorithm.mpw_default_counter, MPKeyPurpose.Identification, null, this.loginType, result, algorithmVersion );
 | 
			
		||||
                        siteName, MPAlgorithm.mpw_default_counter, MPKeyPurpose.Identification, null, this.loginType, result,
 | 
			
		||||
                        algorithmVersion );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Nullable
 | 
			
		||||
 
 | 
			
		||||
@@ -73,7 +73,8 @@ public class MPFlatUnmarshaller implements MPUnmarshaller {
 | 
			
		||||
                    headerStarted = true;
 | 
			
		||||
                else
 | 
			
		||||
                    // Ends the header.
 | 
			
		||||
                    user = new MPFileUser( fullName, keyID, MPMasterKey.Version.fromInt( mpVersion ), avatar, defaultType, new DateTime( 0 ), MPMarshalFormat.Flat );
 | 
			
		||||
                    user = new MPFileUser( fullName, keyID, MPMasterKey.Version.fromInt( mpVersion ), avatar, defaultType,
 | 
			
		||||
                                           new DateTime( 0 ), MPMarshalFormat.Flat );
 | 
			
		||||
 | 
			
		||||
                // Comment.
 | 
			
		||||
            else if (line.startsWith( "#" )) {
 | 
			
		||||
 
 | 
			
		||||
@@ -38,7 +38,7 @@ public class MPJSONUnmarshaller implements MPUnmarshaller {
 | 
			
		||||
    @Nonnull
 | 
			
		||||
    @Override
 | 
			
		||||
    public MPFileUser unmarshall(@Nonnull final String content)
 | 
			
		||||
            throws MPMarshalException{
 | 
			
		||||
            throws MPMarshalException {
 | 
			
		||||
        throw new MPMarshalException( "Not yet implemented" );
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -59,7 +59,8 @@ public abstract class MPSite {
 | 
			
		||||
            throws MPInvalidatedException {
 | 
			
		||||
 | 
			
		||||
        return masterKey.siteResult(
 | 
			
		||||
                getSiteName(), MPAlgorithm.mpw_default_counter, MPKeyPurpose.Identification, null, loginType, loginContent, getAlgorithmVersion() );
 | 
			
		||||
                getSiteName(), MPAlgorithm.mpw_default_counter, MPKeyPurpose.Identification, null, loginType, loginContent,
 | 
			
		||||
                getAlgorithmVersion() );
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,6 @@
 | 
			
		||||
//==============================================================================
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @author lhunath, 15-02-04
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -5,9 +5,9 @@ plugins {
 | 
			
		||||
description = 'Master Password Test Suite'
 | 
			
		||||
 | 
			
		||||
dependencies {
 | 
			
		||||
    compile     project(':masterpassword-algorithm')
 | 
			
		||||
    compile project( ':masterpassword-algorithm' )
 | 
			
		||||
 | 
			
		||||
    testCompile group: 'org.testng', name: 'testng', version:'6.8.5'
 | 
			
		||||
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version:'1.1.2'
 | 
			
		||||
    testCompile group: 'org.testng', name: 'testng', version: '6.8.5'
 | 
			
		||||
    testCompile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
 | 
			
		||||
}
 | 
			
		||||
test.useTestNG()
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
 | 
			
		||||
    <!-- PROJECT METADATA -->
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,6 @@
 | 
			
		||||
#Thu Apr 26 12:52:02 EDT 2018
 | 
			
		||||
distributionBase=GRADLE_USER_HOME
 | 
			
		||||
distributionPath=wrapper/dists
 | 
			
		||||
zipStoreBase=GRADLE_USER_HOME
 | 
			
		||||
zipStorePath=wrapper/dists
 | 
			
		||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-bin.zip
 | 
			
		||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-all.zip
 | 
			
		||||
 
 | 
			
		||||
@@ -39,8 +39,8 @@ dependencies {
 | 
			
		||||
    compile project( ':masterpassword-algorithm' )
 | 
			
		||||
    compile project( ':masterpassword-tests' )
 | 
			
		||||
 | 
			
		||||
    compile             group: 'org.slf4j', name: 'slf4j-android', version:'1.7.13-underscore'
 | 
			
		||||
    compile             group: 'com.jakewharton', name: 'butterknife', version:'8.5.1'
 | 
			
		||||
    annotationProcessor group: 'com.jakewharton', name: 'butterknife-compiler', version:'8.5.1'
 | 
			
		||||
    compile group: 'org.slf4j', name: 'slf4j-android', version: '1.7.13-underscore'
 | 
			
		||||
    compile group: 'com.jakewharton', name: 'butterknife', version: '8.5.1'
 | 
			
		||||
    annotationProcessor group: 'com.jakewharton', name: 'butterknife-compiler', version: '8.5.1'
 | 
			
		||||
    compile files( 'libs/scrypt-1.4.0-native.jar' )
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
 | 
			
		||||
    <!-- PROJECT METADATA -->
 | 
			
		||||
@@ -86,8 +87,10 @@
 | 
			
		||||
                                    <keypass>${env.PASSWORD}</keypass>
 | 
			
		||||
                                    <alias>masterpassword-android</alias>
 | 
			
		||||
                                    <arguments>
 | 
			
		||||
                                      <argument>-sigalg</argument><argument>MD5withRSA</argument>
 | 
			
		||||
                                      <argument>-digestalg</argument><argument>SHA1</argument>
 | 
			
		||||
                                        <argument>-sigalg</argument>
 | 
			
		||||
                                        <argument>MD5withRSA</argument>
 | 
			
		||||
                                        <argument>-digestalg</argument>
 | 
			
		||||
                                        <argument>SHA1</argument>
 | 
			
		||||
                                    </arguments>
 | 
			
		||||
                                </configuration>
 | 
			
		||||
                            </execution>
 | 
			
		||||
 
 | 
			
		||||
@@ -52,8 +52,10 @@ public class EmergencyActivity extends Activity {
 | 
			
		||||
    public static final  int      CLIPBOARD_CLEAR_DELAY = 20 /* s */ * MPConstant.MS_PER_S;
 | 
			
		||||
 | 
			
		||||
    private final Preferences                        preferences    = Preferences.get( this );
 | 
			
		||||
    private final ListeningExecutorService           executor       = MoreExecutors.listeningDecorator( Executors.newSingleThreadExecutor() );
 | 
			
		||||
    private final ImmutableList<MPResultType>        allResultTypes = ImmutableList.copyOf( MPResultType.forClass( MPResultTypeClass.Template ) );
 | 
			
		||||
    private final ListeningExecutorService           executor       = MoreExecutors.listeningDecorator(
 | 
			
		||||
            Executors.newSingleThreadExecutor() );
 | 
			
		||||
    private final ImmutableList<MPResultType>        allResultTypes = ImmutableList.copyOf(
 | 
			
		||||
            MPResultType.forClass( MPResultTypeClass.Template ) );
 | 
			
		||||
    private final ImmutableList<MPMasterKey.Version> allVersions    = ImmutableList.copyOf( MPMasterKey.Version.values() );
 | 
			
		||||
 | 
			
		||||
    private MPMasterKey masterKey;
 | 
			
		||||
@@ -211,7 +213,7 @@ public class EmergencyActivity extends Activity {
 | 
			
		||||
    protected void onResume() {
 | 
			
		||||
        super.onResume();
 | 
			
		||||
 | 
			
		||||
// FIXME:       MasterKey.setAllowNativeByDefault( preferences.isAllowNativeKDF() );
 | 
			
		||||
        // FIXME:       MasterKey.setAllowNativeByDefault( preferences.isAllowNativeKDF() );
 | 
			
		||||
 | 
			
		||||
        fullNameField.setText( preferences.getFullName() );
 | 
			
		||||
        rememberFullNameField.setChecked( preferences.isRememberFullName() );
 | 
			
		||||
 
 | 
			
		||||
@@ -8,10 +8,10 @@ description = 'Master Password GUI'
 | 
			
		||||
mainClassName = 'com.lyndir.masterpassword.gui.GUI'
 | 
			
		||||
 | 
			
		||||
dependencies {
 | 
			
		||||
    compile project(':masterpassword-model')
 | 
			
		||||
    compile project( ':masterpassword-model' )
 | 
			
		||||
 | 
			
		||||
    compile group: 'ch.qos.logback', name: 'logback-classic', version:'1.1.2'
 | 
			
		||||
    compile group: 'com.yuvimasory', name: 'orange-extensions', version:'1.3.0'
 | 
			
		||||
    compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.1.2'
 | 
			
		||||
    compile group: 'com.yuvimasory', name: 'orange-extensions', version: '1.3.0'
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
run {
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
<?xml version="1.0" encoding="UTF-8"?>
 | 
			
		||||
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | 
			
		||||
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 | 
			
		||||
    <modelVersion>4.0.0</modelVersion>
 | 
			
		||||
 | 
			
		||||
    <!-- PROJECT METADATA -->
 | 
			
		||||
@@ -116,8 +117,10 @@
 | 
			
		||||
                                    <keypass>${env.PASSWORD}</keypass>
 | 
			
		||||
                                    <alias>masterpassword-desktop</alias>
 | 
			
		||||
                                    <arguments>
 | 
			
		||||
                                      <argument>-sigalg</argument><argument>MD5withRSA</argument>
 | 
			
		||||
                                      <argument>-digestalg</argument><argument>SHA1</argument>
 | 
			
		||||
                                        <argument>-sigalg</argument>
 | 
			
		||||
                                        <argument>MD5withRSA</argument>
 | 
			
		||||
                                        <argument>-digestalg</argument>
 | 
			
		||||
                                        <argument>SHA1</argument>
 | 
			
		||||
                                    </arguments>
 | 
			
		||||
                                </configuration>
 | 
			
		||||
                            </execution>
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,6 @@
 | 
			
		||||
// LICENSE file.  Alternatively, see <http://www.gnu.org/licenses/>.
 | 
			
		||||
//==============================================================================
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
package com.lyndir.masterpassword.gui;
 | 
			
		||||
 | 
			
		||||
import com.google.common.base.*;
 | 
			
		||||
@@ -54,7 +53,7 @@ public class GUI implements UnlockFrame.SignInCallback {
 | 
			
		||||
 | 
			
		||||
        // Try and set the system look & feel, if available.
 | 
			
		||||
        try {
 | 
			
		||||
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
 | 
			
		||||
            UIManager.setLookAndFeel( UIManager.getSystemLookAndFeelClassName() );
 | 
			
		||||
        }
 | 
			
		||||
        catch (UnsupportedLookAndFeelException | ClassNotFoundException | InstantiationException | IllegalAccessException ignored) {
 | 
			
		||||
        }
 | 
			
		||||
@@ -67,7 +66,8 @@ public class GUI implements UnlockFrame.SignInCallback {
 | 
			
		||||
 | 
			
		||||
            else // No special platform handling.
 | 
			
		||||
                new GUI().open();
 | 
			
		||||
        } catch (IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException e) {
 | 
			
		||||
        }
 | 
			
		||||
        catch (IllegalAccessException | InstantiationException | NoSuchMethodException | InvocationTargetException e) {
 | 
			
		||||
            throw logger.bug( e );
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,6 @@
 | 
			
		||||
//==============================================================================
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @author lhunath, 15-02-04
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,6 @@
 | 
			
		||||
//==============================================================================
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @author lhunath, 15-02-04
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -17,7 +17,6 @@
 | 
			
		||||
//==============================================================================
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
 * @author lhunath, 15-02-04
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -81,7 +81,7 @@ public class IncognitoAuthenticationPanel extends AuthenticationPanel<IncognitoU
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public PasswordFrame<IncognitoUser, ?> newPasswordFrame() {
 | 
			
		||||
        return new PasswordFrame<IncognitoUser, IncognitoSite>(getSelectedUser()) {
 | 
			
		||||
        return new PasswordFrame<IncognitoUser, IncognitoSite>( getSelectedUser() ) {
 | 
			
		||||
            @Override
 | 
			
		||||
            protected IncognitoSite createSite(final IncognitoUser user, final String siteName, final UnsignedInteger siteCounter,
 | 
			
		||||
                                               final MPResultType resultType,
 | 
			
		||||
 
 | 
			
		||||
@@ -172,7 +172,8 @@ public class ModelAuthenticationPanel extends AuthenticationPanel<MPFileUser> im
 | 
			
		||||
                        if (JOptionPane.showConfirmDialog( ModelAuthenticationPanel.this, //
 | 
			
		||||
                                                           strf( "Are you sure you want to delete the user and sites remembered for:\n%s.",
 | 
			
		||||
                                                                 deleteUser.getFullName() ), //
 | 
			
		||||
                                                       "Delete User", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE ) == JOptionPane.CANCEL_OPTION)
 | 
			
		||||
                                                           "Delete User", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE )
 | 
			
		||||
                            == JOptionPane.CANCEL_OPTION)
 | 
			
		||||
                            return;
 | 
			
		||||
 | 
			
		||||
                        MPFileUserManager.get().deleteUser( deleteUser );
 | 
			
		||||
@@ -205,9 +206,10 @@ public class ModelAuthenticationPanel extends AuthenticationPanel<MPFileUser> im
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public PasswordFrame<MPFileUser, MPFileSite> newPasswordFrame() {
 | 
			
		||||
        return new PasswordFrame<MPFileUser, MPFileSite>(getSelectedUser()) {
 | 
			
		||||
        return new PasswordFrame<MPFileUser, MPFileSite>( getSelectedUser() ) {
 | 
			
		||||
            @Override
 | 
			
		||||
            protected MPFileSite createSite(final MPFileUser user, final String siteName, final UnsignedInteger siteCounter, final MPResultType resultType,
 | 
			
		||||
            protected MPFileSite createSite(final MPFileUser user, final String siteName, final UnsignedInteger siteCounter,
 | 
			
		||||
                                            final MPResultType resultType,
 | 
			
		||||
                                            final MPMasterKey.Version algorithmVersion) {
 | 
			
		||||
                return new MPFileSite( user, siteName, siteCounter, resultType, algorithmVersion );
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user