•
• All classes are under namespace vbsec unless otherwise specified.HTML documentation of the equivalent VisiSecure for Java API is included in your VisiBroker installation. It can be found at <install_dir>\doc\sec-api-doc.The general VisiSecure API describes the Current and Context APIs. It provides API information for Principals, Credentials, and Subjects. In addition, the class vbsec::Wallet API is discussed.The class current represents the view to the thread-specific security context. This object can be obtained through the following code:The vbsec.h file should be included when you use this class.
Clear an assertion made by any previous API call of asserting. The caller before the assertion is made will be restored as the caller for next invocation. This API shall be used in conjunction with asserting. Mismatching calls of these two methods may cause undesired caller identities or unexpected exceptions.Get the peer SSLSession. This call returns the SSLSession of the client peer for this request. This method cannot be called outside the context of a request.
BAD_OPERATION is thrown if this method is called outside the context of a request or when called in a request context where the request was received over a clear TCP connection.Context represents the security context under which a client will execute. This class can be obtained through the following code:The vbsec.h file should be included when you use this class.Login into the system. This logs-in to the realms defined in the property vbroker.security.loginRealms. It traverses the list of realms specified and authenticates against each realm.Use this to login to the system using the specified CallbackHandler to obtain the login information.
Gets the Subject corresponding to a given realm.
A pointer to the Subject object representing the subject of the realm.
Set the default callback handler programmatically. This is similar to using the property vbroker.security.authentication.callbackHandler.
The CallbackHandler to be set.
Get the list of cipher suites that are available for use with the SSL layer. Note that this is different from the getEnabledCipherSuites call in that not all the available cipher suites may be currently enabled.
An IDL-generated CipherSuiteInfoList type.Sets the SSL context. This allows the establishing of an SSL session using the information defined in VBSSLContext. A VBSSLContext can be created using the SecureSocketProvider API.
The VBSSLContext that is to be used for any SSL session establishment.The vbsec.h file should be included when you use this class.The vbsec.h file should be included when you use this class.The vbsec.h file should be included when you use this class.
A Wallet is a holder of credentials usually used in login API calls. A Wallet can be created using WalletFactory APIs and contain multiple types of credentials.The vbsec.h file should be included when you use this class.
The vbsec.h file should be included when you use this class.
The password for the keystore, not used for this release.
SSLSession represents the session of the current SSL connection. The SSLSession can be obtained from vbsec::Context using getPeerSession().The vbssp.h file should be included when you use this class.
VBSSLContext contains information needed to establish an SSLSession. This object is created using SecureSocketProvider::createSSLContext().The vbssp.h file should be included when you use this class.
This IDL structure contains two fields which describe ciphers according to the SSL specification. The list of SuiteID values and their names is in the include file, ssl_c.h.The ssl_c.hh file should be included when you use this class.The csstring.h file should be included when you use this class.
A SecureSocketProvider is the provider for secure socket connections. It provides the function of creating the SSL context, handling SSL certificates, and managing other secure socket-related information.The vbssp.h file should be included when you use this class.This method creates an SSL context using the given information. The SSL context can then be passed into vbsec::Context and used to establish an SSL connection.
VBSSLcontext containing the given information.
Gets the list of cipher suites that are available for use with the SSL layer. Note that this is different from the getEnabledCipherSuites call in that not all the available cipher suites may be currently enabled.A CertificateFactory object.The ssl::Current lets your client application or server object set its private key and offer its certificate information to its peer. This interface also lets you configure the SSL connection and associate your certificates and private key with an SSL connection.The ssl_c.hh file should be included when you use this class.
A value (tag) representing the cipher used. (Use CipherSuiteName::toString to get a String representation.)CORBA::BAD_OPERATION if the object is null or the connection is not using SSL.
CORBA::BAD_OPERATION if the object is null or the connection is not using SSL.
CORBA::BAD_OPERATION if the object is null or the connection is not using SSL.
true if the chain is trusted, false otherwise.CORBA::BAD_OPERATION if the object is null or the connection is not using SSL.
The OctetSequenceseed for the PRNG.This method is used in the client or the server to set the certificate chain and private key that must be used for the SSL connections. This is required for servers and optional for clients. Also look at the peerAuthenticationMode property documented in , “Security Properties for C++.”
CORBA::BAD_PARAM if the user name or password is null.
The vbssp.h file should be included when you use this class.Import the certification chain in the form of CORBAsec::ASN1ObjectList into CORBAsec::X509CertList, which could be used in VBSSLContext.
ASN1ObjectList representation of the certificate chain.CORBAsec::X509CertList representation of the certificate chain for CORBA transportation.Import the certification list in the form of CORBAsec::ASN1ObjectList into CORBAsec::X509CertList. Certificates need not be related to each other. The original order is preserved after importing.
ASN1ObjectList representation of certificate listCORBAsec::X509CertList representation of the certificate list.
ASN1ObjectList representation of private key object.
ASN1ObjectList representation of pkcs12 binary. CORBAsec::X509CertList representation of the certificate chain.
ASN1ObjectList representation of pkcs12 binary. CORBAsec::ASN1Object representation of the private key object.
The CertificateFactory.
true if decryption is successful, false if not.The X509Cert_c.hh file should be included when you use this class.
Returns all the extensions available in this certificate as a list of X509CertExtension. Or, if this certificate has no extensions, the method returns an array of length null. The extensions are not parsed.
true if the certificate is valid, false otherwise.Returns an int representing the number of seconds from midnight, January 1st, 1970.Returns an int representing the number of seconds from midnight, January 1st, 1970.
struct X509CertExtension {
long seq;
sequence<long> oid;
boolean critical;
sequence<octet> value;
};
ServerConfigImpl is the implementation of the csiv2::ServerQoPConfig, which is an IDL structure as follows:
• csiv2::CLEAR_ONLY: no secure transport is necessary
• csiv2::SECURE_ONLY: only secure connections are permitted
• csiv2::ALL: any method of transport is allowed An access manager for the QoP implementation, an implementation of csiv2::AccessPolicyManager defined by the user. If null, it uses a default value. The required identity for the QoP policy implementation. The default value is csiv2::ServerQoPConfig::UP_OR_PK. Possible values are: csiv2:ServerQoPConfig::NO_ID, csiv2::ServerQoPConfig::UP, csiv2::ServerQoPConfig::PK, csiv2::ServerQoPConfig::UP_OR_PK and csiv2::ServerQoPConfig::UP_AND_PK To define the ServerQoPPolicy, you create this object which defines the various characteristics of the policy.The CSIV2Policies.h file should be included when you use this class.ServerQoPPolicyImpl is the implementation of the csiv2::ServerQoPPolicy. The ServerQoPPolicyImpl object impacts the QoP behavior of the server.The CSIV2Policies.h file should be included when you use this class.Constructor of the ServerQoPPolicyImpl object.
ServerQoPConfig object which contains the designed QoP configuration.ClientConfigImpl is the implementation of the csiv2::ClientQoPConfig. To define the ClientQoPPolicy, you create this object which defines the various characteristics of the policy.The CSIV2Policies.h file should be included when you use this class
• csiv2::CLEAR_ONLY: no secure transport is necessary
• csiv2::SECURE_ONLY: only secure connections are permitted
• csiv2::ALL: any method of transport is allowed ClientQoPPolicyImpl is the implementation of the csiv2::ClientQoPPolicy. The ClientQoPPolicyImpl object impacts the QoP behavior of the server.The CSIV2Policies.h file should be included when you use this class.Constructor for ClientQoPPolicyImpl object.
ClientConfigImpl object to be used for the policy.AccessPolicyManager is used to define your Access Policy for authorization of a client's method calls.The CSIV2Policies.h file should be included when you use this class.Returns the authorization domain name for the AccessPolicyManager.The authorization domain name for the object that uses this AccessPolicyManager.Returns the objectAccessPolicy for the servant with the objectId (id) and poa id.
ObjectAccessPolicy of the servant object.This class represents the access policy from AccessPolicyManager.The CSIV2Policies.h file should be included when you use this class.