PrevNextUpHome SophiaFramework UNIVERSE 5.3
SFBCertChain
Wrapper Class for the ICertChain interface.
#include <SFBCertChain.h.hpp>
class SFBCertChain : public SFBxOpts;
SFMTYPEDEFWRAPPER(SFBCertChain)

Inheritance diagram

 Inheritance diagram of SFBCertChainClass

Version

BREW 2.0 BREW 2.1 BREW 3.1 BREW 4.0
X X X O

Reference

BREW API ICertChain

Member

Public Functions
SFCError AddCert( SInt32 certType , UInt08ConstPtr certificate , SInt32 certLen , SInt32Ptr outLen )
The preferred alternate to SFBCertBag::AddOpt() to add certs
static
SFBCertChainSmp
NewInstance( SFCErrorPtr exception = null )
Create a new SFBCertChain instance.
static
SFBCertChainSmp
NewInstance( AEECLSID id , SFCErrorPtr exception = null )
Create a new SFBCertChain instance.
SFCError AddOpt( xOpt * opts ) (inherits from SFBxOpts)
Adds the list of xOpt's to the current option set.
SFCError GetOpt( SInt32 id , SInt32 index , xOpt * opt ) (inherits from SFBxOpts)
Find a xOpt in the list of xOpts in index matching id.
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 SFBxOpts)
remove the nIndex'th xOpt matching nOptId
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.

SFBCertChain::AddCert
The preferred alternate to SFBCertBag::AddOpt() to add certs
[ public ]
SFCError AddCert(
    SInt32 certType              // CERTDATAOPT_ROOT_CERTS, CERTDATAOPT_LEAF_CERT or CERTDATAOPT_BRANCH_CERTS 
    UInt08ConstPtr certificate   // Pointer to DER encoded certificate in buffer 
    SInt32 certLen               // Length of input buffer cpCert 
    SInt32Ptr outLen             // Length of certificate actually added 
);

Return value

  • AEE_SUCCESS: Certificate was successfully added
  • AEE_ENOMEMORY: Can't add due to lack of memory
  • AEE_EMEMPTR: ASN.1/DER length of object greater than nDataLen.
  • AEE_EREADONLY: Cert bag is read only and certs can't be added

Reference

BREW API ICertChain_AddCert | BREW API ICertChain_AddOpt


SFBCertChain::NewInstance
Create a new SFBCertChain instance.
[ public, static ]
SFBCertChainSmp NewInstance(
    SFCErrorPtr exception = null   // Error
);
[ public, static ]
SFBCertChainSmp NewInstance(
    AEECLSID id                    // Class ID
    SFCErrorPtr exception = null   // Error
);