#include <ValPolResponse.h>
TSP-enforcing: No
Definition at line 40 of file ValPolResponse.h.
Public Member Functions | |
CPKIFValPolResponse () | |
CPKIFValPolResponse (const CPKIFBufferPtr &) | |
virtual | ~CPKIFValPolResponse (void) |
int | GetVersion () const |
void | SetVersion (int v) |
void | SetVpResponseVersion (int vpResponseVersion) |
const int | GetVpResponseVersion () const |
void | SetMaxCVRequestVersion (int maxCVRequestVersion) |
const int | GetMaxCVRequestVersion () const |
void | SetMaxVPRequestVersion (int maxVPRequestVersion) |
const int | GetMaxVPRequestVersion () const |
void | SetServerConfigurationID (int serverConfigurationID) |
const int | GetServerConfigurationID () const |
void | SetThisUpdate (const CPKIFTimePtr &thisUpdate) |
const CPKIFTimePtr | GetThisUpdate () const |
void | SetSupportedChecks (CPKIFOIDListPtr &supportedChecks) |
void | GetSupportedChecks (CPKIFOIDListPtr &supportedChecks) |
void | SetSupportedWantBacks (CPKIFOIDListPtr &supportedWantBacks) |
void | GetSupportedWantBacks (CPKIFOIDListPtr &supportedWantBacks) |
void | SetValidationPolicies (CPKIFOIDListPtr &validationPolicies) |
void | GetValidationPolicies (CPKIFOIDListPtr &validationPolicies) |
void | SetValidationAlgs (CPKIFOIDListPtr &validationAlgs) |
void | GetValidationAlgs (CPKIFOIDListPtr &validationAlgs) |
void | SetAuthPolicies (CPKIFOIDListPtr &authPolicies) |
void | GetAuthPolicies (CPKIFOIDListPtr &authPolicies) |
void | SetResponseTypes (SCVPResponseTypes responseTypes) |
const SCVPResponseTypes | GetResponseTypes () const |
void | SetRespValidationPolicy (CPKIFValidationPolicyPtr &respValidationPolicy) |
const CPKIFValidationPolicyPtr | GetRespValidationPolicy () const |
void | SetRevocationInfoTypes (std::bitset< 4 > revocationInfoTypes) |
const std::bitset< 4 > | GetRevocationInfoTypes () const |
void | SetSignatureGeneration (CPKIFAlgorithmIdentifierListPtr &signatureGeneration) |
void | GetSignatureGeneration (CPKIFAlgorithmIdentifierListPtr &signatureGeneration) |
void | SetSignatureVerification (CPKIFAlgorithmIdentifierListPtr &signatureVerification) |
void | GetSignatureVerification (CPKIFAlgorithmIdentifierListPtr &signatureVerification) |
void | SetHashAlgorithms (CPKIFOIDListPtr &hashAlgorithms) |
void | GetHashAlgorithms (CPKIFOIDListPtr &hashAlgorithms) |
void | SetClockSkew (int clockSkew) |
const int | GetClockSkew () const |
void | SetNextUpdate (CPKIFTimePtr &NextUpdate) |
const CPKIFTimePtr | GetNextUpdate () const |
void | SetRequestNonce (CPKIFBufferPtr &requestNonce) |
const CPKIFBufferPtr | GetRequestNonce () const |
void | SetKeyAgreePublicKeys (CPKIFKeyAgreePublicKeyListPtr &keyAgreePublicKey) |
void | GetKeyAgreePublicKeys (CPKIFKeyAgreePublicKeyListPtr &keyAgreePublicKey) |
CPKIFBufferPtr | Encode () const |
void | Decode (CPKIFBufferPtr &encoded) const |
CPKIFValPolResponse::CPKIFValPolResponse | ( | ) |
Interface: External
This function is used to create and initialize CPKIFValPolResponse object.
Definition at line 161 of file ValPolResponse.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
CPKIFValPolResponse::CPKIFValPolResponse | ( | const CPKIFBufferPtr & | valPolResponse | ) |
Interface: External
This constructor is internally invoked; it will throw a std::bad_alloc exception if allocation of memory fails or ASN.1 decoding errors if the extension cannot be parsed.
std::bad_alloc |
valPolResponse | [in] A reference to a smart pointer to CPKIFBuffer object containing der encoded ValPolRequest |
Definition at line 188 of file ValPolResponse.cpp.
References CACASNWRAPPER_CREATE, COMMON_INVALID_INPUT, and TOOLKIT_SCVP_ASN.
CPKIFValPolResponse::~CPKIFValPolResponse | ( | void | ) | [virtual] |
Interface: External
This function destroys instances of CPKIFValPolResponse.
Definition at line 210 of file ValPolResponse.cpp.
References LOG_STRING_DEBUG, and TOOLKIT_SCVP_ASN.
int CPKIFValPolResponse::GetVersion | ( | ) | const |
Interface: External
This function is returns the SCVP version of a ValPolResponse. PKIF only supports version 1 responses.
Definition at line 228 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetVersion | ( | int | v | ) |
Interface: External
This function sets the version. Default version is 1
Definition at line 240 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetVpResponseVersion | ( | int | vpResponseVersion | ) |
Interface: External
Sets Validation Policy response version
vpResponseVersion | [in] Response version to be set |
Definition at line 251 of file ValPolResponse.cpp.
const int CPKIFValPolResponse::GetVpResponseVersion | ( | ) | const |
Interface: External
Gets Validation Policy response version
Definition at line 264 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetMaxCVRequestVersion | ( | int | maxCVRequestVersion | ) |
Interface: External
Sets max request version
maxCVRequestVersion | [in] Max request version to be set |
Definition at line 275 of file ValPolResponse.cpp.
const int CPKIFValPolResponse::GetMaxCVRequestVersion | ( | ) | const |
Interface: External
Gets max request version
Definition at line 288 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetMaxVPRequestVersion | ( | int | maxVPRequestVersion | ) |
Interface: External
Sets Max Validation Policy request version
maxVPRequestVersion | [in] Max Request version to be set |
Definition at line 299 of file ValPolResponse.cpp.
const int CPKIFValPolResponse::GetMaxVPRequestVersion | ( | ) | const |
Interface: External
Gets Max Validation Policy request version
Definition at line 312 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetServerConfigurationID | ( | int | serverConfigurationID | ) |
Interface: External
Sets server configuration id
serverConfigurationID | [in] Server config ID |
Definition at line 323 of file ValPolResponse.cpp.
const int CPKIFValPolResponse::GetServerConfigurationID | ( | ) | const |
Interface: External
Gets server configuration id
Definition at line 336 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetThisUpdate | ( | const CPKIFTimePtr & | thisUpdate | ) |
Interface: External
Sets this update
thisUpdate | [in] This update to be set |
Definition at line 347 of file ValPolResponse.cpp.
const CPKIFTimePtr CPKIFValPolResponse::GetThisUpdate | ( | ) | const |
Interface: External
Gets this update
Definition at line 360 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetSupportedChecks | ( | CPKIFOIDListPtr & | supportedChecks | ) |
Interface: External
Sets supported checks
supportedChecks | [in] Supported checks oid list |
Definition at line 371 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetSupportedChecks | ( | CPKIFOIDListPtr & | supportedChecks | ) |
Interface: External
Gets supported checks
supportedChecks | [out] Supported checks oid list |
Definition at line 384 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetSupportedWantBacks | ( | CPKIFOIDListPtr & | supportedWantBacks | ) |
Interface: External
Sets supported wantBacks
supportedWantBacks | [in] Supported wantBacks oid list |
Definition at line 397 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetSupportedWantBacks | ( | CPKIFOIDListPtr & | supportedWantBacks | ) |
Interface: External
Gets supported wantBacks
supportedWantBacks | [out] Supported wantBacks oid list |
Definition at line 410 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetValidationPolicies | ( | CPKIFOIDListPtr & | validationPolicies | ) |
Interface: External
Sets validation policies
validationPolicies | [in] Validation policies oid list |
Definition at line 423 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetValidationPolicies | ( | CPKIFOIDListPtr & | validationPolicies | ) |
Interface: External
Gets validation policies
validationPolicies | [out] Validation policies oid list |
Definition at line 436 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetValidationAlgs | ( | CPKIFOIDListPtr & | validationAlgs | ) |
Interface: External
Sets validation algorithms
validationAlgs | [in] Validation algorithms oid list |
Definition at line 449 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetValidationAlgs | ( | CPKIFOIDListPtr & | validationAlgs | ) |
Interface: External
Gets validation algorithms
validationAlgs | [out] Validation algorithms oid list |
Definition at line 462 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetAuthPolicies | ( | CPKIFOIDListPtr & | authPolicies | ) |
Interface: External
Sets Auth Policies
authPolicies | [in] Auth policies oid list |
Definition at line 475 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetAuthPolicies | ( | CPKIFOIDListPtr & | authPolicies | ) |
Interface: External
Gets Auth Policies
authPolicies | [out] Auth policies oid list |
Definition at line 488 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetResponseTypes | ( | SCVPResponseTypes | responseTypes | ) |
Interface: External
Sets response types
responseTypes | [in] SCVP response types to be set |
Definition at line 501 of file ValPolResponse.cpp.
const SCVPResponseTypes CPKIFValPolResponse::GetResponseTypes | ( | ) | const |
Interface: External
Gets response types
Definition at line 514 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetRespValidationPolicy | ( | CPKIFValidationPolicyPtr & | respValidationPolicy | ) |
Interface: External
Sets response validation policy
respValidationPolicy | [in] Validation policy to be set |
Definition at line 525 of file ValPolResponse.cpp.
const CPKIFValidationPolicyPtr CPKIFValPolResponse::GetRespValidationPolicy | ( | ) | const |
Interface: External
Gets response validation policy
Definition at line 538 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetRevocationInfoTypes | ( | std::bitset< 4 > | revocationInfoTypes | ) |
Interface: External
Sets revocation info types
revocationInfoTypes | [in] Bitset indicating revocation info types |
Definition at line 549 of file ValPolResponse.cpp.
const std::bitset< 4 > CPKIFValPolResponse::GetRevocationInfoTypes | ( | ) | const |
Interface: External
Gets revocation info types
Definition at line 562 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetSignatureGeneration | ( | CPKIFAlgorithmIdentifierListPtr & | signatureGeneration | ) |
Interface: External
Sets signature generation algorithm ID
signatureGeneration | [in] Algorithm ID |
Definition at line 573 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetSignatureGeneration | ( | CPKIFAlgorithmIdentifierListPtr & | signatureGeneration | ) |
Interface: External
Gets signature generation algorithm ID
signatureGeneration | [out] Algorithm ID |
Definition at line 586 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetSignatureVerification | ( | CPKIFAlgorithmIdentifierListPtr & | signatureVerification | ) |
Interface: External
Sets signature verification algorithm ID
signatureVerification | [in] Algorithm ID |
Definition at line 599 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetSignatureVerification | ( | CPKIFAlgorithmIdentifierListPtr & | signatureVerification | ) |
Interface: External
Gets signature verification algorithm ID
signatureVerification | [out] Algorithm ID |
Definition at line 612 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetHashAlgorithms | ( | CPKIFOIDListPtr & | hashAlgorithms | ) |
Interface: External
Sets hash algorithms
hashAlgorithms | [in] Hash algs oid list |
Definition at line 625 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetHashAlgorithms | ( | CPKIFOIDListPtr & | hashAlgorithms | ) |
Interface: External
Gets hash algorithms
hashAlgorithms | [out] Hash algs oid list |
Definition at line 638 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetClockSkew | ( | int | clockSkew | ) |
Interface: External
Sets clock skew
clockSkew | [out] Clock Skew |
Definition at line 651 of file ValPolResponse.cpp.
const int CPKIFValPolResponse::GetClockSkew | ( | ) | const |
void CPKIFValPolResponse::SetNextUpdate | ( | CPKIFTimePtr & | nextUpdate | ) |
Interface: External
Sets next update
nextUpdate | [out] Next update |
Definition at line 677 of file ValPolResponse.cpp.
const CPKIFTimePtr CPKIFValPolResponse::GetNextUpdate | ( | ) | const |
Interface: External
Gets next update
Definition at line 690 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetRequestNonce | ( | CPKIFBufferPtr & | requestNonce | ) |
Interface: External
Sets request nonce
requestNonce | [in] Request nonce value |
Definition at line 701 of file ValPolResponse.cpp.
const CPKIFBufferPtr CPKIFValPolResponse::GetRequestNonce | ( | ) | const |
Interface: External
Gets request nonce
Definition at line 714 of file ValPolResponse.cpp.
void CPKIFValPolResponse::SetKeyAgreePublicKeys | ( | CPKIFKeyAgreePublicKeyListPtr & | keyAgreePublicKey | ) |
Interface: External
Sets key agreement public keys
keyAgreePublicKey | [out] Key agreement public key list |
Definition at line 725 of file ValPolResponse.cpp.
void CPKIFValPolResponse::GetKeyAgreePublicKeys | ( | CPKIFKeyAgreePublicKeyListPtr & | keyAgreePublicKey | ) |
Interface: External
Gets key agreement public keys
keyAgreePublicKey | [out] Key agreement public key list |
Definition at line 738 of file ValPolResponse.cpp.
CPKIFBufferPtr CPKIFValPolResponse::Encode | ( | ) | const |
Interface: External
This function is used to generate an encoded a SCVP response.
CPKIFSCVPException(SCVP_MISSING_REQUIRED_FIELD) | ||
CPKIFSCVPException(COMMON_NOT_IMPLEMENTED) |
Definition at line 755 of file ValPolResponse.cpp.
References CACASNWRAPPER_CREATE, DELTACRLS, FULLCRLS, INDIRECTCRLS, LOG_STRING_DEBUG, NEW_NEXT_AND_ADVANCE, NEW_NODE, OCSPRESPONSES, PopulateDListWithASN1OBJID(), PopulateDListWithCACX509V3AlgorithmIdentifier(), PopulateKeyAgreePublicKey(), PopulateValidationPolicy(), PKIFSCVPMemoryHelper::pValPolResponse, SET_HEAD_TAIL_INCREMENT, TOOLKIT_SCVP, and TOOLKIT_SCVP_ASN.
void CPKIFValPolResponse::Decode | ( | CPKIFBufferPtr & | encoded | ) | const |
Interface: External
This function is used to generate decode a valPolResponse.
CPKIFSCVPException(SCVP_MISSING_REQUIRED_FIELD) | ||
CPKIFSCVPException(COMMON_NOT_IMPLEMENTED) |
Definition at line 941 of file ValPolResponse.cpp.
References CACASNWRAPPER_CREATE, CACHED_AND_NON_CACHED, CACHED_ONLY, COMMON_INVALID_INPUT, CPKIFTime, DELTACRLS, FULLCRLS, INDIRECTCRLS, MSG_DECODE_FAILED, NON_CACHED_ONLY, OCSPRESPONSES, PopulatePKIFAlgorithmIdentifierList(), PopulatePKIFOIDList(), and TOOLKIT_SCVP_ASN.