org.mozilla.jss.util

Class PasswordCallbackInfo

public class PasswordCallbackInfo extends Object

An object of this class is passed to a PasswordCallback to give it information about the token that is being logged into.
Field Summary
static intFILE
Logging into a file.
protected Stringname
protected inttype
static intTOKEN
Logging into a PKCS #11 token.
Constructor Summary
PasswordCallbackInfo(String name, int type)
Method Summary
StringgetName()
The name of the file or token that is being logged into.
intgetType()
The type of object that is being logged into, FILE or TOKEN.

Field Detail

FILE

public static final int FILE
Logging into a file.

name

protected String name

type

protected int type

TOKEN

public static final int TOKEN
Logging into a PKCS #11 token.

Constructor Detail

PasswordCallbackInfo

public PasswordCallbackInfo(String name, int type)

Parameters: name The name of the file or token that is being logged into. type The type of object (FILE or TOKEN) that is being logged into.

Method Detail

getName

public String getName()
The name of the file or token that is being logged into.

getType

public int getType()
The type of object that is being logged into, FILE or TOKEN.