SophiaFramework UNIVERSE 5.3 |
#include <SFBX509Chain.h.hpp>
class SFBX509Chain : public SFBWebOpts;
SFMTYPEDEFWRAPPER(SFBX509Chain)
BREW 2.0 | BREW 2.1 | BREW 3.1 | BREW 4.0 |
---|---|---|---|
O | O | O | O |
Public Functions | |
---|---|
SFCError |
AddCert(
SInt32 webOpt
, UInt08ConstPtr certificate
, SInt32 certificateLength
)
Add the list of WebOpts to the current web option set.
An alternate to SFBX509Chain::AddOpt () to add certs.
|
SFCError |
GetBasic(
SInt32 webOpt
, SInt32 index
, X509BasicCert* basic
)
Get basic and small fields in a certificate.
|
SFCError |
GetField(
SInt32 webOpt
, SInt32 certIndex
, SInt32 which
, UInt08ConstHandle field
, UInt32Ptr fieldLength
)
Get a field out of an X.509 certificate.
|
SFCError |
GetFieldPart(
X509PartRequest const & request
, X509CertPart* response
)
Get individual extensions or parts out of the subject or issuer.
|
SFCError |
GetRSAKey(
SInt32 webOpt
, SInt32 index
, SFBRSASmpPtr irsa
)
Get an the RSA key as an IRSA object ready for use.
|
SFBRSASmp |
GetRSAKey(
SInt32 webOpt
, SInt32 index
)
Get an the RSA key as an IRSA object ready for use.
|
static SFBX509ChainSmp |
NewInstance(
SFCErrorPtr exception = null
)
Create a new SFBX509Chain instance.
|
static SFBX509ChainSmp |
NewInstance(
AEECLSID id
, SFCErrorPtr exception = null
)
Create a new SFBX509Chain instance.
|
Void |
Verify(
X509TrustResult* trustResult
, SFXCallbackPtr callback
, ...
)
Complete and verify the certificate chain.
|
Void |
VerifyV(
X509TrustResult* trustResult
, SFXCallbackPtr callback
, WebOpt const & opts
)
Complete and verify the certificate chain.
|
SFCError |
AddOpt(
WebOptPtr opts
)
(inherits from SFBWebOpts)
Add the list of WebOpts to the current web option set.
|
SFCError |
GetOpt(
SInt32 id
, SInt32 index
, WebOptPtr opt
)
(inherits from SFBWebOpts)
Get a WebOpt in the list of WebOpts in SFBWebOpts instance matching OptId in.
|
SFCError |
QueryInterface(
AEECLSID clsid
, VoidHandle handle
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFCError |
QueryInterface(
AEECLSID clsid
, SFBBaseSmpPtr handle
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFBBaseSmp |
QueryInterface(
AEECLSID clsid
)
(inherits from SFBQuery)
Ask an object for another API contract from the object in question.
|
SFCError |
RemoveOpt(
SInt32 id
, SInt32 index
)
(inherits from SFBWebOpts)
Remove the nIndex'th WebOpt matching OptId.
|
Void |
Self(
AEECLSID clsidReq
, SFBQuerySmpPtr clone
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
SFBQuerySmp |
Self(
AEECLSID clsidReq
, AEECLSID clsidImp
)
(inherits from SFBQuery)
Helper macro for those implementing an object with a single interface.
|
Protected Functions | |
---|---|
static SFBBaseSmp |
FactoryByCreate(
AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface.
|
static SFBBaseSmp |
FactoryByQuery(
SFBQuerySmpConstRef query
, AEECLSID id
, SFCErrorPtr exception = null
)
(inherits from SFBBase)
Create the instance for the specified ClassID's interface using the SFBQuery instance.
|
[ public ] SFCError AddCert( SInt32 webOpt // WEBOPT_X509_ROOT_CERT, .._LEAF_CERT or ... _BRANCH_CERT UInt08ConstPtr certificate // pointer to DER encoded certificate in buffer SInt32 certificateLength // length of certificate );
[ public ] SFCError GetBasic( SInt32 webOpt // which WebOpt ID to get them from- WEBOPT_X509_ROOT_CERT, _LEAF_CERT or ... _BRANCH_CERT or .._CHAIN_CERT SInt32 index // the index of certificate of the given WebOpt ID / type X509BasicCert* basic // place to put fields retrieved. Caller supplies the storage );
[ public ] SFCError GetField( SInt32 webOpt // which WebOpt ID set to get them from WEBOPT_X509_ROOT_CERT, _LEAF_CERT or ... _BRANCH_CERT SInt32 certIndex // the index of certificate of the given WebOpt ID / type SInt32 which // which field in the certificate to get. One of X509CHAIN_FIELD_* UInt08ConstHandle field // place to put pointer to field UInt32Ptr fieldLength // place to length of field );
[ public ] SFCError GetFieldPart( X509PartRequest const & request // the description of the request X509CertPart* response // filled in with the response );
[ public ] SFCError GetRSAKey( SInt32 webOpt // which WebOpt set to get them from WEBOPT_X509_ROOT_CERT, _LEAF_CERT or ... _BRANCH_CERT SInt32 index // the index of certificate of the given option type to get SFBRSASmpPtr irsa // place to put pointer to newly created IRSA interface );
[ public ] SFBRSASmp GetRSAKey( SInt32 webOpt // which WebOpt set to get them from WEBOPT_X509_ROOT_CERT, _LEAF_CERT or ... _BRANCH_CERT s SInt32 index // the index of certificate of the given option type to get );
[ public, static ] SFBX509ChainSmp NewInstance( SFCErrorPtr exception = null // Error );
[ public, static ] SFBX509ChainSmp NewInstance( AEECLSID id // Class ID SFCErrorPtr exception = null // Error );
[ public ] Void Verify( X509TrustResult* trustResult // place to put trust result SFXCallbackPtr callback // called back when verification is complete ... // a set of web opts to use while doing Verify );
[ public ] Void VerifyV( X509TrustResult* trustResult // place to put trust result SFXCallbackPtr callback // called back when verification is complete WebOpt const & opts // set of web opts to use while doing Verify );
Copyright(c) 2002 - 2024 Sophia Cradle Incorporated All Rights Reserved. |