/*
 * Copyright 2016 Datalogics Inc.
 */

package com.datalogics.pdf.security;

/**
 * This class represents login parameters that are used to login into a LunaSa HSM device.
 */
public class LunaHsmLoginParms extends HsmLoginParms {

    private final String tokenLabel;

    public LunaHsmLoginParms(final String pswd) {
        super(pswd);
        this.tokenLabel = null;
    }

    public LunaHsmLoginParms(final String tokenLbl, final String pswd) {
        super(pswd);
        this.tokenLabel = tokenLbl;
    }

    public String getTokenLabel() {
        return tokenLabel;
    }
}

@@ -274,113 +274,606 @@
     
-public LunaHsmLoginParms(final String pswd) %7B%0A        super(pswd);%0A        this.tokenLabel = null;%0A    %7D%0A
+/**%0A     * Instantiate the login parameters for logging in to a Luna SA device using the first available Hsm partition slot%0A     * and the given password.%0A     *%0A     * @param pswd - The password to use for the login%0A     */%0A    public LunaHsmLoginParms(final String pswd) %7B%0A        super(pswd);%0A        this.tokenLabel = null;%0A    %7D%0A%0A    /**%0A     * Instantiate the login parameters for logging in to a Luna SA Hsm device using the given tokenLabel and password.%0A     *%0A     * @param tokenLbl - The label of the token to which to login%0A     * @param pswd - The password to use for the login%0A     */
 %0A   
@@ -1002,24 +1002,144 @@
 Lbl;%0A    %7D%0A%0A
+    /**%0A     * Get the Hsm tokenLabel which is synonymous with partition name.%0A     *%0A     * @return tokenLabel%0A     */%0A
     public S

Add Javadocs.