⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sl3tls.idl

📁 MICO2.3.13 corba 环境平台
💻 IDL
📖 第 1 页 / 共 2 页
字号:
//tabstop=4//***********************************************************************// ORBAsec SL3                                                     // ----------------------------------------------------------------------// Copyright (C) 2001 Adiron, LLC.                                 //                    All rights reserved.                         // ----------------------------------------------------------------------// $Id$//***********************************************************************//// Marked modifications Copyright (C) 2002, 2003, 2004 ObjectSecurity Ltd.//#ifndef _SL3TLS_IDL_#define _SL3TLS_IDL_#include <mico/security/sl3pm.idl>#include <mico/security/sl3cm.idl>//#include <mico/security/securitylevel3.idl>//#include <mico/security/transportsecurity.idl>//#include <mico/security/sl3aqargs.idl>#include <mico/security/sl3tcpip.idl>#include <mico/basic_seq.idl>//#include <mico/orb.idl>#pragma prefix "adiron.com"module SL3TLS {     // begin of ObjectSecurity removal//      const SL3CM::MechanismId       MID_TLS  = "TLS";    /**     * This is the only acquisition mechanism for acquiring TLS     * Transport Credentials.     *///      const SL3CM::AcquisitionMethod AQM_TLSArgs = "TLSArgs";    // end of ObjectSecurity removal    /**     * Implementers may create their own local version of     * this interface to verify chains of X509 Certificates.     */    local interface TLSX509IdentityVerifier {        /**         * This operation is called by the security service at the         * TLS Transport Credentials creation phase to add certificates         * as trusted entities directed by other TLS options.         */        void add_trusted_authority(            in SL3PM::X509IdentityStatement auth        );                /**         * This operation is called by the security service to determine         * if the peer is allowed to be anonymous. This means that the          * peer has not delivered a certificate and did not authenticate         * itself.         */        boolean is_anonymous_allowed();                /**         * This operation is called by the security service at the         * transport authentication phase, when the peer certificate         * needs to be verified. The X509IdentityStatement will contain         * a sequence of encoded X509 Certificates, which may be empty.         */        boolean verify(            in SL3PM::X509IdentityStatement ident        );    };        /**     * The TLS KeyStore Acquisition Builder extends the TCPIP     * Builder. This is because the same TCPIP Acquisition Arguments     * apply to TLS, as TCPIP sits underneath TLS.     */    ///    /// kcg: TLSKeyStore* constructs don't fit well with OpenSSL API usage    /// and so I've added OpenSSLConfig* constructs (below)    ///    local interface TLSKeyStoreArgBuilder : SL3TCPIP::TCPIPArgBuilder {        /**         * This operation adds a X509 Certificate Chain Identity Verifier         * argument to the acquisition arguments.         *         * @param verifier The locally defined interface that will verify         *                 the certificate chain.         */        void addTLSX509IdentityVerifier(            in TLSX509IdentityVerifier verifier        );        /**         * This operation is used when there is a password on          * the keystore.         *         * @param keystore  This argument contains the URL of the         *                  keystore.         * @param storetype This argument contains the type of the         *                  keystore. Currently, one of "IAIKKeyStore"         *                  or "jks".         * @param storepass This is the password that protects the          *                  key store.         * @param keyalias  This argument contains the alias of a private         *                  key in the keystore. If this argument is         *                  an empty string, then the credentials will         *                  be considered anonymous.         * @param keypass   This argument contains the password that         *                  unlocks the private key named by the keyalias.         * @param trusted_cert_names         *                  This argument contains the alias of certificates         *                  in the key store that are considered trusted         *                  to verify certificates of the peer during         *                  authentication. A empty string sequence signifies         *                  that the default chain verifier will accept         *                  chains ending in any trusted certificate         *                  entry found in the keystore.         * <p>         * Note: On the default TLSX509IdentityVerifier, anonymous         * communication is always allowed.         */        void addTLSKeyStoreWithStorePass(            in string           keystore,            in string           storetype,            in string           storepass,            in string           keyalias,            in string           keypass,            in CORBA::StringSeq trusted_cert_names        );                /**         * This operation is used when there is no password on          * the keystore. This approach should only be used in          * cases where the integrity of the keystore is not an issue.         *         * @param keystore  This argument contains the URL of the         *                  keystore.         * @param storetype This argument contains the type of the         *                  keystore. Currently, one of "IAIKKeyStore"         *                  or "jks".         * @param keyalias  This argument contains the alias of a private         *                  key in the keystore. If this argument is         *                  an empty string, then the credentials will         *                  be considered anonymous.         * @param keypass   This argument contains the password that         *                  unlocks the private key named by the keyalias.         * @param trusted_cert_names         *                  This argument contains the alias of certificates         *                  in the key store that are considered trusted         *                  to verify certificates of the peer during         *                  authentication. A empty string sequence signifies         *                  that the default chain verifier will accept         *                  chains ending in any trusted certificate         *                  entry found in the keystore.         * <p>         * Note: On the default TLSX509IdentityVerifier, anonymous         * communication is always allowed.         */        void addTLSKeyStoreNoStorePass(            in string           keystore,            in string           storetype,            in string           keyalias,            in string           keypass,            in CORBA::StringSeq trusted_cert_names        );        /**         * This operation is used when there is a password on          * the keystore.         *         * @param keystore  This argument contains the octet         *                  sequence containing the keystore.         * @param storetype This argument contains the type of the         *                  keystore. Currently, one of "IAIKKeyStore"         *                  or "jks".         * @param storepass This is the password that protects the          *                  key store.         * @param keyalias  This argument contains the alias of a private         *                  key in the keystore. If this argument is         *                  an empty string, then the credentials will         *                  be considered anonymous.         * @param keypass   This argument contains the password that         *                  unlocks the private key named by the keyalias.         * @param trusted_cert_names         *                  This argument contains the alias of certificates         *                  in the key store that are considered trusted         *                  to verify certificates of the peer during         *                  authentication. A empty string sequence signifies         *                  that the default chain verifier will accept         *                  chains ending in any trusted certificate         *                  entry found in the keystore.         * <p>         * Note: On the default TLSX509IdentityVerifier, anonymous         * communication is always allowed.         */        void addTLSEncodedKeyStoreWithStorePass(            in CORBA::OctetSeq  keystore,            in string           storetype,            in string           storepass,            in string           keyalias,            in string           keypass,            in CORBA::StringSeq trusted_cert_names        );                /**         * This operation is used when there is no password on          * the keystore. This approach should only be used in          * cases where the integrity of the keystore is not an issue.         *         * @param keystore  This argument contains the octet         *                  sequence containing the keystore.         * @param storetype This argument contains the type of the         *                  keystore. Currently, one of "IAIKKeyStore"         *                  or "jks".         * @param keyalias  This argument contains the alias of a private         *                  key in the keystore. If this argument is         *                  an empty string, then the credentials will         *                  be considered anonymous.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -