public abstract class LoginManager extends Configurable
defaultProperties_, properties_| Constructor and Description |
|---|
LoginManager() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
login(TokenManager tokenManager,
iaik.pkcs.pkcs11.Session session,
boolean useSORole,
char[] userPIN)
Login a certain role into the given session.
|
abstract void |
loginSO(TokenManager tokenManager,
iaik.pkcs.pkcs11.Session session,
char[] userPIN)
Login the Security Officer (SO) into the given session.
|
abstract void |
loginUser(TokenManager tokenManager,
iaik.pkcs.pkcs11.Session session,
char[] userPIN)
Login the user into the given session.
|
abstract void |
logout(TokenManager tokenManager,
iaik.pkcs.pkcs11.Session session)
Logout the user from the given session.
|
abstract void |
setUserPIN(TokenManager tokenManager,
iaik.pkcs.pkcs11.Session session,
char[] oldPIN,
char[] newPIN)
Change the user PIN.
|
addProperties, getProperties, propertiesChanged, setPropertiespublic abstract void loginUser(TokenManager tokenManager, iaik.pkcs.pkcs11.Session session, char[] userPIN) throws IAIKPkcs11AuthenticationCanceledException, IAIKPkcs11AuthenticationException, iaik.pkcs.pkcs11.TokenException
tokenManager - The token manager that requests the login.session - The session to login the user. If the session is null, the method may open a new
session.iaik.pkcs.pkcs11.TokenExceptionIAIKPkcs11AuthenticationCanceledException - If the login has been canceled.IAIKPkcs11AuthenticationException - If the user PIN could not be changed; e.g. wrong PIN.public abstract void loginSO(TokenManager tokenManager, iaik.pkcs.pkcs11.Session session, char[] userPIN) throws iaik.pkcs.pkcs11.TokenException, IAIKPkcs11AuthenticationCanceledException, IAIKPkcs11AuthenticationException
tokenManager - The token manager that requests the login.session - The session to login the SO. If the session is null, the method may open a new
session.IAIKPkcs11AuthenticationCanceledException - If the login has been canceled.IAIKPkcs11AuthenticationException - If the user PIN could not be changed; e.g. wrong PIN.iaik.pkcs.pkcs11.TokenExceptionpublic abstract void login(TokenManager tokenManager, iaik.pkcs.pkcs11.Session session, boolean useSORole, char[] userPIN) throws iaik.pkcs.pkcs11.TokenException, IAIKPkcs11AuthenticationCanceledException, IAIKPkcs11AuthenticationException
tokenManager - The token manager that requests the login.session - The session to login. If the session is null, the method may open a new session.useSORole - The role to authenticate to. Use true to authenticate as SO, false to
authenticate as user.IAIKPkcs11AuthenticationCanceledException - If the login has been canceled.IAIKPkcs11AuthenticationException - If the user PIN could not be changed; e.g. wrong PIN.iaik.pkcs.pkcs11.TokenExceptionpublic abstract void setUserPIN(TokenManager tokenManager, iaik.pkcs.pkcs11.Session session, char[] oldPIN, char[] newPIN) throws iaik.pkcs.pkcs11.TokenException, IAIKPkcs11AuthenticationCanceledException, IAIKPkcs11AuthenticationException
tokenManager - The token manager requesting the PIN change.session - The session to use for changing the PIN. If the session is null, the method may open a
new session.oldPIN - The old (current) user PIN or null if unavailable.newPIN - iaik.pkcs.pkcs11.TokenException - If the change faild because of an unexpected token error.IAIKPkcs11AuthenticationCanceledException - If the operation has been canceled.IAIKPkcs11AuthenticationException - If the user PIN could not be changed; e.g. wrong PIN.public abstract void logout(TokenManager tokenManager, iaik.pkcs.pkcs11.Session session) throws iaik.pkcs.pkcs11.TokenException
tokenManager - The token manager requesting the logout.session - The session to logout. If the session is null, the method may open a new session.iaik.pkcs.pkcs11.TokenException - If the logout fails because of an unexpected token error.IAIK JavaSecurity Website https://jce.iaik.tugraz.at/
IAIK at Graz University of Technology, Austria, Europe
Copyright 2001-2023 IAIK, Graz University of Technology, Inffeldgasse 16a, 8010 Graz, Austria. All Rights Reserved. Version 1.9.4