kz.gamma.cmp
Class SecretResponse

java.lang.Object
  extended by kz.gamma.cmp.CmpData
      extended by kz.gamma.cmp.CmpResponse
          extended by kz.gamma.cmp.SecretResponse

public class SecretResponse
extends CmpResponse

Ответ на запрос выполнения операции с секретом

Author:
Renat Karimov

Field Summary
 
Fields inherited from class kz.gamma.cmp.CmpResponse
errorCmpFail, errorCmpStatus, response, responseType, responseTypeCode, signerCertificate, usefulData
 
Fields inherited from class kz.gamma.cmp.CmpData
acquireContextFlag, caCertificate, fileHelper, handleKey1, handleKey2, handleProv, profile, profileCreator, profileInfo, profileKeySpec, transactionId
 
Constructor Summary
SecretResponse()
           
 
Method Summary
protected  boolean verify(java.util.Map params)
          Проверка ответа Internet X.509 Public Key Infrastructure Certificate Management Protocol (CMP) http://www.ietf.org/rfc/rfc4210.txt
 
Methods inherited from class kz.gamma.cmp.CmpResponse
getErrorCmpFail, getErrorCmpStatus, getResponse, getResponseType, getResponseTypeCode, getSignerCertificate, getUsefulData, initFields, verifyResponse
 
Methods inherited from class kz.gamma.cmp.CmpData
getAcquireContextFlag, getCaCertificate, getHandleKey1, getHandleKey2, getHandleProv, getProfile, getProfileKeySpec, getTransactionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecretResponse

public SecretResponse()
Method Detail

verify

protected boolean verify(java.util.Map params)
Проверка ответа Internet X.509 Public Key Infrastructure Certificate Management Protocol (CMP) http://www.ietf.org/rfc/rfc4210.txt

Specified by:
verify in class CmpResponse
Parameters:
params - Параметры для запроса. Ключи:
  • profile (Профайл или URL на ключ. Тип String. Обязательный);
  • response (Ответ сервера. Тип byte[]. Обязательный);
  • secretOperationOid (OID запроса. Тип String. Обязательный. Возможные варианты: LibraryWrapper.CMP_GENERAL_ADD_SECRET, LibraryWrapper.CMP_GENERAL_MOD_SECRET, LibraryWrapper.CMP_GENERAL_GET_SECRET, LibraryWrapper.CMP_GENERAL_DEL_SECRET, LibraryWrapper.CMP_GENERAL_ADD_USER_DETAILS, LibraryWrapper.CMP_GENERAL_MOD_USER_DETAILS, LibraryWrapper.CMP_GENERAL_GET_USER_DETAILS, LibraryWrapper.CMP_GENERAL_PASS);
  • operationType (Тип операции. Тип Integer. Обязательный. Возможные варианты: SecretRequest.ADD, SecretRequest.MOD, SecretRequest.GET, SecretRequest.DEL);
  • acquireContextFlag (Флаг загрузки ключа. Тип int. Обязательный. Необходимо передавать LibraryWrapper.CRYPT_SILENT).
Returns:
true, если проверка прошла успешно


Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.