kz.gamma.cmp
Class CertificationResponse

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

public class CertificationResponse
extends CmpResponse

Ответ на запрос выпуска сертификатов (CP)

Author:
Renat Karimov

Field Summary
private  int status
          Статус ответа LibraryWrapper.PKI_CMP_CP
private  java.util.Date time
          Время до которого транзакция будет действительна, если статус ответа равен LibraryWrapper.PKISTATUS_INFO_WAITING
 
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
CertificationResponse()
           
 
Method Summary
 int getStatus()
          Получение cтатуса ответа LibraryWrapper.PKI_CMP_CP
private  java.util.Date getTime()
          Получение времени до которого транзакция будет действительна, если статус ответа равен LibraryWrapper.PKISTATUS_INFO_WAITING
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
 

Field Detail

time

private java.util.Date time
Время до которого транзакция будет действительна, если статус ответа равен LibraryWrapper.PKISTATUS_INFO_WAITING


status

private int status
Статус ответа LibraryWrapper.PKI_CMP_CP

Constructor Detail

CertificationResponse

public CertificationResponse()
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[]. Обязательный);
  • acquireContextFlag (Флаг загрузки ключа. Тип Integer. Обязательный. Необходимо передавать LibraryWrapper.CRYPT_SILENT).
Returns:
true, если проверка прошла успешно

getTime

private java.util.Date getTime()
Получение времени до которого транзакция будет действительна, если статус ответа равен LibraryWrapper.PKISTATUS_INFO_WAITING

Returns:
Время

getStatus

public int getStatus()
Получение cтатуса ответа LibraryWrapper.PKI_CMP_CP

Returns:
Статус ответа LibraryWrapper.PKI_CMP_CP


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