public class Rutoken extends RutokenBase
cryptoProRootPath, DEFAULT_PROTOCOL, DEFAULT_RUTOKEN, folderSeparator, jcpFoldersNames, RT_FCP_DESCR_ByteOrder, RT_FCP_FILE_ID_ByteOrder, RT_FCP_FILE_LEN_ByteOrder, RT_FCP_RSF_INFO_ByteOrder, RUTOKEN_ADMIN_GCHV_ID, RUTOKEN_USER_GCHV_ID
Constructor and Description |
---|
Rutoken(java.lang.String readerSerial) |
Modifier and Type | Method and Description |
---|---|
Response |
changePin(char[] oldPin,
char[] newPin,
Owner owner)
Функия смены пароля на токен.
|
Response |
createFile(java.lang.String path,
int fileSize,
boolean isFolder,
boolean isPrivate)
Создать файл или папку (без блокировки)
|
Response |
deleteFile(java.lang.String path)
Удалить файл или папку (без блокировки)
|
int |
getFreeMemory()
Получить свободное место (без блокировки)
|
Response |
getPinInfo(Owner owner)
Функия получения информации о пароле.
|
java.lang.String |
getSerialNumber()
Получить серийный номер (без блокировки)
|
Response |
login(char[] pin,
Owner owner)
Логин (без блокировки)
|
Response |
logout()
Логаут (без блокировки)
|
Response |
readFile(java.lang.String path,
int offset,
byte[] data,
int size)
Прочитать файл (без блокировки)
|
Response |
selectFile(java.lang.String path)
Выбор папки или файла на считывателе (без блокировки доступа)
|
Response |
writeFile(java.lang.String path,
int offset,
byte[] data,
int size)
Записать файл (без блокировки)
|
changePinExcl, checkSerial, connectPCSC, createFileExcl, deleteFileExcl, disconnectPCSC, getConnectState, getFreeMemoryExcl, getListSelectNestedRecursive, getPinInfoExcl, getSerialNumberExcl, loginExcl, logoutExcl, readFileExcl, selectFileExcl, writeFileExcl
public Response selectFile(java.lang.String path) throws java.lang.Exception
RutokenBase
selectFile
in class RutokenBase
java.lang.Exception
public Response createFile(java.lang.String path, int fileSize, boolean isFolder, boolean isPrivate) throws java.lang.Exception
RutokenBase
createFile
in class RutokenBase
java.lang.Exception
public Response deleteFile(java.lang.String path) throws java.lang.Exception
RutokenBase
deleteFile
in class RutokenBase
java.lang.Exception
public Response writeFile(java.lang.String path, int offset, byte[] data, int size) throws java.lang.Exception
RutokenBase
writeFile
in class RutokenBase
java.lang.Exception
public int getFreeMemory() throws java.lang.Exception
RutokenBase
getFreeMemory
in class RutokenBase
java.lang.Exception
public Response getPinInfo(Owner owner) throws java.lang.Exception
RutokenBase
getPinInfo
in class RutokenBase
owner
- права (админ или пользователь)java.lang.Exception
- ошибка выполнения запроса.public Response login(char[] pin, Owner owner) throws java.lang.Exception
RutokenBase
login
in class RutokenBase
java.lang.Exception
public Response logout() throws java.lang.Exception
RutokenBase
logout
in class RutokenBase
java.lang.Exception
public Response changePin(char[] oldPin, char[] newPin, Owner owner) throws java.lang.Exception
RutokenBase
changePin
in class RutokenBase
oldPin
- существующий пинnewPin
- новый пинowner
- права (админ или пользователь)java.lang.Exception
- ошибка выполнения запроса.public Response readFile(java.lang.String path, int offset, byte[] data, int size) throws java.lang.Exception
RutokenBase
readFile
in class RutokenBase
java.lang.Exception
public java.lang.String getSerialNumber() throws java.lang.Exception
RutokenBase
getSerialNumber
in class RutokenBase
java.lang.Exception