// -*- C++ -*-
//
// $Id$

// ****  Code generated by the The ACE ORB (TAO) IDL Compiler ****
// TAO and the TAO IDL Compiler have been developed by:
//       Center for Distributed Object Computing
//       Washington University
//       St. Louis, MO
//       USA
//       http://www.cs.wustl.edu/~schmidt/doc-center.html
// and
//       Distributed Object Computing Laboratory
//       University of California at Irvine
//       Irvine, CA
//       USA
//       http://doc.ece.uci.edu/
// and
//       Institute for Software Integrated Systems
//       Vanderbilt University
//       Nashville, TN
//       USA
//       http://www.isis.vanderbilt.edu/
//
// Information about TAO is available at:
//     http://www.cs.wustl.edu/~schmidt/TAO.html

// TAO_IDL - Generated from
// be/be_codegen.cpp:153

#ifndef _TAO_IDL_SECURITYLEVEL2C_H_
#define _TAO_IDL_SECURITYLEVEL2C_H_

#include /**/ "ace/pre.h"


#include "ace/config-all.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "Security/security_export.h"
#include "tao/ORB.h"
#include "tao/Environment.h"
#include "tao/Object.h"
#include "tao/Any.h"
#include "tao/Sequence_T.h"
#include "tao/Objref_VarOut_T.h"
#include "tao/Seq_Var_T.h"
#include "tao/Seq_Out_T.h"

#include "orbsvcs/orbsvcs/SecurityLevel1C.h"

#if defined (TAO_EXPORT_MACRO)
#undef TAO_EXPORT_MACRO
#endif
#define TAO_EXPORT_MACRO TAO_Security_Export

#if defined (TAO_EXPORT_NESTED_CLASSES)
#  if defined (TAO_EXPORT_NESTED_MACRO)
#    undef TAO_EXPORT_NESTED_MACRO
#  endif /* defined (TAO_EXPORT_NESTED_MACRO) */
#  define TAO_EXPORT_NESTED_MACRO TAO_Security_Export
#endif /* TAO_EXPORT_NESTED_CLASSES */

#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */

#if defined (__BORLANDC__)
#pragma option push -w-rvl -w-rch -w-ccc -w-inl
#endif /* __BORLANDC__ */

// TAO_IDL - Generated from 
// be/be_visitor_root/root_ch.cpp:63

namespace TAO
{
  class Collocation_Proxy_Broker;
  
  template<typename T> class Narrow_Utils;
  template<typename T> class AbstractBase_Narrow_Utils;
}

// TAO_IDL - Generated from
// be/be_visitor_module/module_ch.cpp:48

namespace SecurityLevel2
{
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_PRINCIPALAUTHENTICATOR__VAR_OUT_CH_)
#define _SECURITYLEVEL2_PRINCIPALAUTHENTICATOR__VAR_OUT_CH_
  
  class PrincipalAuthenticator;
  typedef PrincipalAuthenticator *PrincipalAuthenticator_ptr;
  
  typedef
    TAO_Objref_Var_T<
        PrincipalAuthenticator
      >
    PrincipalAuthenticator_var;
  
  typedef
    TAO_Objref_Out_T<
        PrincipalAuthenticator
      >
    PrincipalAuthenticator_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_CREDENTIALS__VAR_OUT_CH_)
#define _SECURITYLEVEL2_CREDENTIALS__VAR_OUT_CH_
  
  class Credentials;
  typedef Credentials *Credentials_ptr;
  
  typedef
    TAO_Objref_Var_T<
        Credentials
      >
    Credentials_var;
  
  typedef
    TAO_Objref_Out_T<
        Credentials
      >
    Credentials_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_CURRENT__VAR_OUT_CH_)
#define _SECURITYLEVEL2_CURRENT__VAR_OUT_CH_
  
  class Current;
  typedef Current *Current_ptr;
  
  typedef
    TAO_Objref_Var_T<
        Current
      >
    Current_var;
  
  typedef
    TAO_Objref_Out_T<
        Current
      >
    Current_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_PRINCIPALAUTHENTICATOR_CH_)
#define _SECURITYLEVEL2_PRINCIPALAUTHENTICATOR_CH_
  
  class TAO_Security_Export PrincipalAuthenticator
    : public virtual CORBA::Object
  {
  public:
    typedef PrincipalAuthenticator_ptr _ptr_type;
    typedef PrincipalAuthenticator_var _var_type;
    
    // The static operations.
    static PrincipalAuthenticator_ptr _duplicate (PrincipalAuthenticator_ptr obj);
    
    static PrincipalAuthenticator_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static PrincipalAuthenticator_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static PrincipalAuthenticator_ptr _nil (void)
    {
      return (PrincipalAuthenticator_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::AuthenticationMethodList * get_supported_authen_methods (
        const char * mechanism
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::AuthenticationStatus authenticate (
        ::Security::AuthenticationMethod method,
        const char * mechanism,
        const char * security_name,
        const ::CORBA::Any & auth_data,
        const ::Security::AttributeList & privileges,
        ::SecurityLevel2::Credentials_out creds,
        ::CORBA::Any_out continuation_data,
        ::CORBA::Any_out auth_specific_data
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::AuthenticationStatus continue_authentication (
        const ::CORBA::Any & response_data,
        ::SecurityLevel2::Credentials_ptr creds,
        ::CORBA::Any_out continuation_data,
        ::CORBA::Any_out auth_specific_data
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    PrincipalAuthenticator (void);
    
    virtual ~PrincipalAuthenticator (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    PrincipalAuthenticator (const PrincipalAuthenticator &);
    
    void operator= (const PrincipalAuthenticator &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_PrincipalAuthenticator;
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_CREDENTIALS_CH_)
#define _SECURITYLEVEL2_CREDENTIALS_CH_
  
  class TAO_Security_Export Credentials
    : public virtual CORBA::Object
  {
  public:
    typedef Credentials_ptr _ptr_type;
    typedef Credentials_var _var_type;
    
    // The static operations.
    static Credentials_ptr _duplicate (Credentials_ptr obj);
    
    static Credentials_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static Credentials_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static Credentials_ptr _nil (void)
    {
      return (Credentials_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::Credentials_ptr copy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void destroy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::InvocationCredentialsType credentials_type (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::AuthenticationStatus authentication_state (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual char * mechanism (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual Security::AssociationOptions accepting_options_supported (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void accepting_options_supported (
        ::Security::AssociationOptions accepting_options_supported
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual Security::AssociationOptions accepting_options_required (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void accepting_options_required (
        ::Security::AssociationOptions accepting_options_required
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual Security::AssociationOptions invocation_options_supported (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void invocation_options_supported (
        ::Security::AssociationOptions invocation_options_supported
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual Security::AssociationOptions invocation_options_required (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void invocation_options_required (
        ::Security::AssociationOptions invocation_options_required
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual CORBA::Boolean get_security_feature (
        ::Security::CommunicationDirection direction,
        ::Security::SecurityFeature feature
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual CORBA::Boolean set_attributes (
        const ::Security::AttributeList & requested_attributes,
        ::Security::AttributeList_out actual_attributes
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::AttributeList * get_attributes (
        const ::Security::AttributeTypeList & attributes
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual CORBA::Boolean is_valid (
        ::Security::UtcT_out expiry_time
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual CORBA::Boolean refresh (
        const ::CORBA::Any & refresh_data
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    Credentials (void);
    
    virtual ~Credentials (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    Credentials (const Credentials &);
    
    void operator= (const Credentials &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Credentials;
  
  // TAO_IDL - Generated from
  // be/be_visitor_sequence/sequence_ch.cpp:101

#if !defined (_SECURITYLEVEL2_CREDENTIALSLIST_CH_)
#define _SECURITYLEVEL2_CREDENTIALSLIST_CH_
  
  class CredentialsList;
  
  typedef
    TAO_MngSeq_Var_T<
        CredentialsList,
        TAO_Object_Manager<
            Credentials,
            Credentials_var
          >
      >
    CredentialsList_var;
  
  typedef
    TAO_MngSeq_Out_T<
        CredentialsList,
        CredentialsList_var,
        TAO_Object_Manager<
            Credentials,
            Credentials_var
          >
      >
    CredentialsList_out;
  
  class TAO_Security_Export CredentialsList
    : public
        TAO_Unbounded_Object_Sequence<
            Credentials,
            Credentials_var
          >
  {
  public:
    CredentialsList (void);
    CredentialsList (CORBA::ULong max);
    CredentialsList (
        CORBA::ULong max,
        CORBA::ULong length,
        Credentials_ptr* buffer, 
        CORBA::Boolean release = 0
      );
    CredentialsList (const CredentialsList &);
    ~CredentialsList (void);
    
    static void _tao_any_destructor (void *);
    
    typedef CredentialsList_var _var_type;
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_CredentialsList;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_RECEIVEDCREDENTIALS__VAR_OUT_CH_)
#define _SECURITYLEVEL2_RECEIVEDCREDENTIALS__VAR_OUT_CH_
  
  class ReceivedCredentials;
  typedef ReceivedCredentials *ReceivedCredentials_ptr;
  
  typedef
    TAO_Objref_Var_T<
        ReceivedCredentials
      >
    ReceivedCredentials_var;
  
  typedef
    TAO_Objref_Out_T<
        ReceivedCredentials
      >
    ReceivedCredentials_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_RECEIVEDCREDENTIALS_CH_)
#define _SECURITYLEVEL2_RECEIVEDCREDENTIALS_CH_
  
  class TAO_Security_Export ReceivedCredentials
    : public virtual ::SecurityLevel2::Credentials
  {
  public:
    typedef ReceivedCredentials_ptr _ptr_type;
    typedef ReceivedCredentials_var _var_type;
    
    // The static operations.
    static ReceivedCredentials_ptr _duplicate (ReceivedCredentials_ptr obj);
    
    static ReceivedCredentials_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static ReceivedCredentials_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static ReceivedCredentials_ptr _nil (void)
    {
      return (ReceivedCredentials_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::Credentials_ptr accepting_credentials (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual Security::AssociationOptions association_options_used (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::DelegationState delegation_state (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::DelegationMode delegation_mode (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    ReceivedCredentials (void);
    
    virtual ~ReceivedCredentials (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    ReceivedCredentials (const ReceivedCredentials &);
    
    void operator= (const ReceivedCredentials &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_ReceivedCredentials;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_TARGETCREDENTIALS__VAR_OUT_CH_)
#define _SECURITYLEVEL2_TARGETCREDENTIALS__VAR_OUT_CH_
  
  class TargetCredentials;
  typedef TargetCredentials *TargetCredentials_ptr;
  
  typedef
    TAO_Objref_Var_T<
        TargetCredentials
      >
    TargetCredentials_var;
  
  typedef
    TAO_Objref_Out_T<
        TargetCredentials
      >
    TargetCredentials_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_TARGETCREDENTIALS_CH_)
#define _SECURITYLEVEL2_TARGETCREDENTIALS_CH_
  
  class TAO_Security_Export TargetCredentials
    : public virtual ::SecurityLevel2::Credentials
  {
  public:
    typedef TargetCredentials_ptr _ptr_type;
    typedef TargetCredentials_var _var_type;
    
    // The static operations.
    static TargetCredentials_ptr _duplicate (TargetCredentials_ptr obj);
    
    static TargetCredentials_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static TargetCredentials_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static TargetCredentials_ptr _nil (void)
    {
      return (TargetCredentials_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::Credentials_ptr initiating_credentials (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual Security::AssociationOptions association_options_used (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    TargetCredentials (void);
    
    virtual ~TargetCredentials (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    TargetCredentials (const TargetCredentials &);
    
    void operator= (const TargetCredentials &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_TargetCredentials;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_REQUIREDRIGHTS__VAR_OUT_CH_)
#define _SECURITYLEVEL2_REQUIREDRIGHTS__VAR_OUT_CH_
  
  class RequiredRights;
  typedef RequiredRights *RequiredRights_ptr;
  
  typedef
    TAO_Objref_Var_T<
        RequiredRights
      >
    RequiredRights_var;
  
  typedef
    TAO_Objref_Out_T<
        RequiredRights
      >
    RequiredRights_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_REQUIREDRIGHTS_CH_)
#define _SECURITYLEVEL2_REQUIREDRIGHTS_CH_
  
  class TAO_Security_Export RequiredRights
    : public virtual CORBA::Object
  {
  public:
    friend class TAO::Narrow_Utils<RequiredRights>;
    typedef RequiredRights_ptr _ptr_type;
    typedef RequiredRights_var _var_type;
    
    // The static operations.
    static RequiredRights_ptr _duplicate (RequiredRights_ptr obj);
    
    static RequiredRights_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static RequiredRights_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static RequiredRights_ptr _nil (void)
    {
      return (RequiredRights_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void get_required_rights (
        ::CORBA::Object_ptr obj,
        const char * operation_name,
        const char * interface_name,
        ::Security::RightsList_out rights,
        ::Security::RightsCombinator_out rights_combinator
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      ));
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void set_required_rights (
        const char * operation_name,
        const char * interface_name,
        const ::Security::RightsList & rights,
        ::Security::RightsCombinator rights_combinator
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      ));
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  private:
    TAO::Collocation_Proxy_Broker *the_TAO_RequiredRights_Proxy_Broker_;
  
  protected:
    // Concrete interface only.
    RequiredRights (void);
    
    // These methods travese the inheritance tree and set the
    // parents piece of the given class in the right mode.
    virtual void SecurityLevel2_RequiredRights_setup_collocation (void);
    
    // Concrete non-local interface only.
    RequiredRights (
        IOP::IOR *ior,
        TAO_ORB_Core *orb_core = 0
      );
    
    // Non-local interface only.
    RequiredRights (
        TAO_Stub *objref,
        CORBA::Boolean _tao_collocated = 0,
        TAO_Abstract_ServantBase *servant = 0,
        TAO_ORB_Core *orb_core = 0
      );
    
    virtual ~RequiredRights (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    RequiredRights (const RequiredRights &);
    
    void operator= (const RequiredRights &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_RequiredRights;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_AUDITCHANNEL__VAR_OUT_CH_)
#define _SECURITYLEVEL2_AUDITCHANNEL__VAR_OUT_CH_
  
  class AuditChannel;
  typedef AuditChannel *AuditChannel_ptr;
  
  typedef
    TAO_Objref_Var_T<
        AuditChannel
      >
    AuditChannel_var;
  
  typedef
    TAO_Objref_Out_T<
        AuditChannel
      >
    AuditChannel_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_AUDITCHANNEL_CH_)
#define _SECURITYLEVEL2_AUDITCHANNEL_CH_
  
  class TAO_Security_Export AuditChannel
    : public virtual CORBA::Object
  {
  public:
    typedef AuditChannel_ptr _ptr_type;
    typedef AuditChannel_var _var_type;
    
    // The static operations.
    static AuditChannel_ptr _duplicate (AuditChannel_ptr obj);
    
    static AuditChannel_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static AuditChannel_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static AuditChannel_ptr _nil (void)
    {
      return (AuditChannel_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void audit_write (
        const ::Security::AuditEventType & event_type,
        const ::SecurityLevel2::CredentialsList & creds,
        const ::Security::UtcT & time,
        const ::Security::SelectorValueList & descriptors,
        const ::CORBA::Any & event_specific_data
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual Security::AuditChannelId audit_channel_id (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    AuditChannel (void);
    
    virtual ~AuditChannel (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    AuditChannel (const AuditChannel &);
    
    void operator= (const AuditChannel &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_AuditChannel;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_AUDITDECISION__VAR_OUT_CH_)
#define _SECURITYLEVEL2_AUDITDECISION__VAR_OUT_CH_
  
  class AuditDecision;
  typedef AuditDecision *AuditDecision_ptr;
  
  typedef
    TAO_Objref_Var_T<
        AuditDecision
      >
    AuditDecision_var;
  
  typedef
    TAO_Objref_Out_T<
        AuditDecision
      >
    AuditDecision_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_AUDITDECISION_CH_)
#define _SECURITYLEVEL2_AUDITDECISION_CH_
  
  class TAO_Security_Export AuditDecision
    : public virtual CORBA::Object
  {
  public:
    typedef AuditDecision_ptr _ptr_type;
    typedef AuditDecision_var _var_type;
    
    // The static operations.
    static AuditDecision_ptr _duplicate (AuditDecision_ptr obj);
    
    static AuditDecision_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static AuditDecision_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static AuditDecision_ptr _nil (void)
    {
      return (AuditDecision_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual CORBA::Boolean audit_needed (
        const ::Security::AuditEventType & event_type,
        const ::Security::SelectorValueList & value_list
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::AuditChannel_ptr audit_channel (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    AuditDecision (void);
    
    virtual ~AuditDecision (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    AuditDecision (const AuditDecision &);
    
    void operator= (const AuditDecision &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_AuditDecision;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_ACCESSDECISION__VAR_OUT_CH_)
#define _SECURITYLEVEL2_ACCESSDECISION__VAR_OUT_CH_
  
  class AccessDecision;
  typedef AccessDecision *AccessDecision_ptr;
  
  typedef
    TAO_Objref_Var_T<
        AccessDecision
      >
    AccessDecision_var;
  
  typedef
    TAO_Objref_Out_T<
        AccessDecision
      >
    AccessDecision_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_ACCESSDECISION_CH_)
#define _SECURITYLEVEL2_ACCESSDECISION_CH_
  
  class TAO_Security_Export AccessDecision
    : public virtual CORBA::Object
  {
  public:
    typedef AccessDecision_ptr _ptr_type;
    typedef AccessDecision_var _var_type;
    
    // The static operations.
    static AccessDecision_ptr _duplicate (AccessDecision_ptr obj);
    
    static AccessDecision_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static AccessDecision_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static AccessDecision_ptr _nil (void)
    {
      return (AccessDecision_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual CORBA::Boolean access_allowed (
        const ::SecurityLevel2::CredentialsList & cred_list,
        ::CORBA::Object_ptr target,
        const char * operation_name,
        const char * target_interface_name
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    AccessDecision (void);
    
    virtual ~AccessDecision (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    AccessDecision (const AccessDecision &);
    
    void operator= (const AccessDecision &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_AccessDecision;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_QOPPOLICY__VAR_OUT_CH_)
#define _SECURITYLEVEL2_QOPPOLICY__VAR_OUT_CH_
  
  class QOPPolicy;
  typedef QOPPolicy *QOPPolicy_ptr;
  
  typedef
    TAO_Objref_Var_T<
        QOPPolicy
      >
    QOPPolicy_var;
  
  typedef
    TAO_Objref_Out_T<
        QOPPolicy
      >
    QOPPolicy_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_QOPPOLICY_CH_)
#define _SECURITYLEVEL2_QOPPOLICY_CH_
  
  class TAO_Security_Export QOPPolicy
    : public virtual ::CORBA::Policy
  {
  public:
    typedef QOPPolicy_ptr _ptr_type;
    typedef QOPPolicy_var _var_type;
    
    // The static operations.
    static QOPPolicy_ptr _duplicate (QOPPolicy_ptr obj);
    
    static QOPPolicy_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static QOPPolicy_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static QOPPolicy_ptr _nil (void)
    {
      return (QOPPolicy_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::QOP qop (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::CORBA::Policy_ptr copy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void destroy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    QOPPolicy (void);
    
    virtual ~QOPPolicy (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    QOPPolicy (const QOPPolicy &);
    
    void operator= (const QOPPolicy &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_QOPPolicy;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_MECHANISMPOLICY__VAR_OUT_CH_)
#define _SECURITYLEVEL2_MECHANISMPOLICY__VAR_OUT_CH_
  
  class MechanismPolicy;
  typedef MechanismPolicy *MechanismPolicy_ptr;
  
  typedef
    TAO_Objref_Var_T<
        MechanismPolicy
      >
    MechanismPolicy_var;
  
  typedef
    TAO_Objref_Out_T<
        MechanismPolicy
      >
    MechanismPolicy_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_MECHANISMPOLICY_CH_)
#define _SECURITYLEVEL2_MECHANISMPOLICY_CH_
  
  class TAO_Security_Export MechanismPolicy
    : public virtual ::CORBA::Policy
  {
  public:
    typedef MechanismPolicy_ptr _ptr_type;
    typedef MechanismPolicy_var _var_type;
    
    // The static operations.
    static MechanismPolicy_ptr _duplicate (MechanismPolicy_ptr obj);
    
    static MechanismPolicy_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static MechanismPolicy_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static MechanismPolicy_ptr _nil (void)
    {
      return (MechanismPolicy_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::MechanismTypeList * mechanisms (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::CORBA::Policy_ptr copy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void destroy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    MechanismPolicy (void);
    
    virtual ~MechanismPolicy (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    MechanismPolicy (const MechanismPolicy &);
    
    void operator= (const MechanismPolicy &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_MechanismPolicy;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_INVOCATIONCREDENTIALSPOLICY__VAR_OUT_CH_)
#define _SECURITYLEVEL2_INVOCATIONCREDENTIALSPOLICY__VAR_OUT_CH_
  
  class InvocationCredentialsPolicy;
  typedef InvocationCredentialsPolicy *InvocationCredentialsPolicy_ptr;
  
  typedef
    TAO_Objref_Var_T<
        InvocationCredentialsPolicy
      >
    InvocationCredentialsPolicy_var;
  
  typedef
    TAO_Objref_Out_T<
        InvocationCredentialsPolicy
      >
    InvocationCredentialsPolicy_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_INVOCATIONCREDENTIALSPOLICY_CH_)
#define _SECURITYLEVEL2_INVOCATIONCREDENTIALSPOLICY_CH_
  
  class TAO_Security_Export InvocationCredentialsPolicy
    : public virtual ::CORBA::Policy
  {
  public:
    typedef InvocationCredentialsPolicy_ptr _ptr_type;
    typedef InvocationCredentialsPolicy_var _var_type;
    
    // The static operations.
    static InvocationCredentialsPolicy_ptr _duplicate (InvocationCredentialsPolicy_ptr obj);
    
    static InvocationCredentialsPolicy_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static InvocationCredentialsPolicy_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static InvocationCredentialsPolicy_ptr _nil (void)
    {
      return (InvocationCredentialsPolicy_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::CredentialsList * creds (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::CORBA::Policy_ptr copy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void destroy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    InvocationCredentialsPolicy (void);
    
    virtual ~InvocationCredentialsPolicy (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    InvocationCredentialsPolicy (const InvocationCredentialsPolicy &);
    
    void operator= (const InvocationCredentialsPolicy &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_InvocationCredentialsPolicy;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_ESTABLISHTRUSTPOLICY__VAR_OUT_CH_)
#define _SECURITYLEVEL2_ESTABLISHTRUSTPOLICY__VAR_OUT_CH_
  
  class EstablishTrustPolicy;
  typedef EstablishTrustPolicy *EstablishTrustPolicy_ptr;
  
  typedef
    TAO_Objref_Var_T<
        EstablishTrustPolicy
      >
    EstablishTrustPolicy_var;
  
  typedef
    TAO_Objref_Out_T<
        EstablishTrustPolicy
      >
    EstablishTrustPolicy_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_ESTABLISHTRUSTPOLICY_CH_)
#define _SECURITYLEVEL2_ESTABLISHTRUSTPOLICY_CH_
  
  class TAO_Security_Export EstablishTrustPolicy
    : public virtual ::CORBA::Policy
  {
  public:
    typedef EstablishTrustPolicy_ptr _ptr_type;
    typedef EstablishTrustPolicy_var _var_type;
    
    // The static operations.
    static EstablishTrustPolicy_ptr _duplicate (EstablishTrustPolicy_ptr obj);
    
    static EstablishTrustPolicy_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static EstablishTrustPolicy_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static EstablishTrustPolicy_ptr _nil (void)
    {
      return (EstablishTrustPolicy_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::EstablishTrust trust (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::CORBA::Policy_ptr copy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void destroy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    EstablishTrustPolicy (void);
    
    virtual ~EstablishTrustPolicy (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    EstablishTrustPolicy (const EstablishTrustPolicy &);
    
    void operator= (const EstablishTrustPolicy &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_EstablishTrustPolicy;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_DELEGATIONDIRECTIVEPOLICY__VAR_OUT_CH_)
#define _SECURITYLEVEL2_DELEGATIONDIRECTIVEPOLICY__VAR_OUT_CH_
  
  class DelegationDirectivePolicy;
  typedef DelegationDirectivePolicy *DelegationDirectivePolicy_ptr;
  
  typedef
    TAO_Objref_Var_T<
        DelegationDirectivePolicy
      >
    DelegationDirectivePolicy_var;
  
  typedef
    TAO_Objref_Out_T<
        DelegationDirectivePolicy
      >
    DelegationDirectivePolicy_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_DELEGATIONDIRECTIVEPOLICY_CH_)
#define _SECURITYLEVEL2_DELEGATIONDIRECTIVEPOLICY_CH_
  
  class TAO_Security_Export DelegationDirectivePolicy
    : public virtual ::CORBA::Policy
  {
  public:
    typedef DelegationDirectivePolicy_ptr _ptr_type;
    typedef DelegationDirectivePolicy_var _var_type;
    
    // The static operations.
    static DelegationDirectivePolicy_ptr _duplicate (DelegationDirectivePolicy_ptr obj);
    
    static DelegationDirectivePolicy_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static DelegationDirectivePolicy_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static DelegationDirectivePolicy_ptr _nil (void)
    {
      return (DelegationDirectivePolicy_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::DelegationDirective delegation_directive (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::CORBA::Policy_ptr copy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void destroy (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    DelegationDirectivePolicy (void);
    
    virtual ~DelegationDirectivePolicy (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    DelegationDirectivePolicy (const DelegationDirectivePolicy &);
    
    void operator= (const DelegationDirectivePolicy &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_DelegationDirectivePolicy;
  
  // TAO_IDL - Generated from
  // be/be_interface.cpp:613

#if !defined (_SECURITYLEVEL2_SECURITYMANAGER__VAR_OUT_CH_)
#define _SECURITYLEVEL2_SECURITYMANAGER__VAR_OUT_CH_
  
  class SecurityManager;
  typedef SecurityManager *SecurityManager_ptr;
  
  typedef
    TAO_Objref_Var_T<
        SecurityManager
      >
    SecurityManager_var;
  
  typedef
    TAO_Objref_Out_T<
        SecurityManager
      >
    SecurityManager_out;

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_SECURITYMANAGER_CH_)
#define _SECURITYLEVEL2_SECURITYMANAGER_CH_
  
  class TAO_Security_Export SecurityManager
    : public virtual CORBA::Object
  {
  public:
    typedef SecurityManager_ptr _ptr_type;
    typedef SecurityManager_var _var_type;
    
    // The static operations.
    static SecurityManager_ptr _duplicate (SecurityManager_ptr obj);
    
    static SecurityManager_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static SecurityManager_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static SecurityManager_ptr _nil (void)
    {
      return (SecurityManager_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::Security::MechandOptionsList * supported_mechanisms (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::CredentialsList * own_credentials (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::RequiredRights_ptr required_rights_object (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::PrincipalAuthenticator_ptr principal_authenticator (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::AccessDecision_ptr access_decision (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::AuditDecision_ptr audit_decision (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::TargetCredentials_ptr get_target_credentials (
        ::CORBA::Object_ptr obj_ref
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual void remove_own_credentials (
        ::SecurityLevel2::Credentials_ptr creds
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::CORBA::Policy_ptr get_security_policy (
        ::CORBA::PolicyType policy_type
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    SecurityManager (void);
    
    virtual ~SecurityManager (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    SecurityManager (const SecurityManager &);
    
    void operator= (const SecurityManager &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_SecurityManager;
  
  // TAO_IDL - Generated from
  // be/be_visitor_interface/interface_ch.cpp:54

#if !defined (_SECURITYLEVEL2_CURRENT_CH_)
#define _SECURITYLEVEL2_CURRENT_CH_
  
  class TAO_Security_Export Current
    : public virtual ::SecurityLevel1::Current
  {
  public:
    typedef Current_ptr _ptr_type;
    typedef Current_var _var_type;
    
    // The static operations.
    static Current_ptr _duplicate (Current_ptr obj);
    
    static Current_ptr _narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static Current_ptr _unchecked_narrow (
        CORBA::Object_ptr obj
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    static Current_ptr _nil (void)
    {
      return (Current_ptr)0;
    }
    
    static void _tao_any_destructor (void *);
    
    // TAO_IDL - Generated from
    // be/be_visitor_operation/operation_ch.cpp:46
    
    virtual ::SecurityLevel2::ReceivedCredentials_ptr received_credentials (
        ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS
      )
      ACE_THROW_SPEC ((
        CORBA::SystemException
      )) = 0;
    
    // TAO_IDL - Generated from
    // be/be_visitor_interface/interface_ch.cpp:208
    
    virtual CORBA::Boolean _is_a (
        const char *type_id
        ACE_ENV_ARG_DECL_WITH_DEFAULTS
      );
    
    virtual const char* _interface_repository_id (void) const;
    virtual CORBA::Boolean marshal (TAO_OutputCDR &cdr);
  
  protected:
    // Abstract or local interface only.
    Current (void);
    
    virtual ~Current (void);
  
  private:
    // Private and unimplemented for concrete interfaces.
    Current (const Current &);
    
    void operator= (const Current &);
  };

#endif /* end #if !defined */
  
  // TAO_IDL - Generated from
  // be/be_visitor_typecode/typecode_decl.cpp:44
  
  TAO_NAMESPACE_STORAGE_CLASS ::CORBA::TypeCode_ptr _tc_Current;

// TAO_IDL - Generated from
// be/be_visitor_module/module_ch.cpp:66

} // module SecurityLevel2

// Proxy Broker Factory function pointer declarations.

// TAO_IDL - Generated from
// be/be_visitor_root/root.cpp:120

extern TAO_Security_Export
TAO::Collocation_Proxy_Broker *
(*SecurityLevel2__TAO_RequiredRights_Proxy_Broker_Factory_function_pointer) (
    CORBA::Object_ptr obj
  );

// TAO_IDL - Generated from
// be/be_visitor_traits.cpp:59

// Traits specializations.
namespace TAO
{

#if !defined (_SECURITYLEVEL2_PRINCIPALAUTHENTICATOR__TRAITS_CH_)
#define _SECURITYLEVEL2_PRINCIPALAUTHENTICATOR__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::PrincipalAuthenticator>
  {
    static ::SecurityLevel2::PrincipalAuthenticator_ptr tao_duplicate (
        ::SecurityLevel2::PrincipalAuthenticator_ptr
      );
    static void tao_release (
        ::SecurityLevel2::PrincipalAuthenticator_ptr
      );
    static ::SecurityLevel2::PrincipalAuthenticator_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::PrincipalAuthenticator_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_CREDENTIALS__TRAITS_CH_)
#define _SECURITYLEVEL2_CREDENTIALS__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::Credentials>
  {
    static ::SecurityLevel2::Credentials_ptr tao_duplicate (
        ::SecurityLevel2::Credentials_ptr
      );
    static void tao_release (
        ::SecurityLevel2::Credentials_ptr
      );
    static ::SecurityLevel2::Credentials_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::Credentials_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_CURRENT__TRAITS_CH_)
#define _SECURITYLEVEL2_CURRENT__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::Current>
  {
    static ::SecurityLevel2::Current_ptr tao_duplicate (
        ::SecurityLevel2::Current_ptr
      );
    static void tao_release (
        ::SecurityLevel2::Current_ptr
      );
    static ::SecurityLevel2::Current_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::Current_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_RECEIVEDCREDENTIALS__TRAITS_CH_)
#define _SECURITYLEVEL2_RECEIVEDCREDENTIALS__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::ReceivedCredentials>
  {
    static ::SecurityLevel2::ReceivedCredentials_ptr tao_duplicate (
        ::SecurityLevel2::ReceivedCredentials_ptr
      );
    static void tao_release (
        ::SecurityLevel2::ReceivedCredentials_ptr
      );
    static ::SecurityLevel2::ReceivedCredentials_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::ReceivedCredentials_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_TARGETCREDENTIALS__TRAITS_CH_)
#define _SECURITYLEVEL2_TARGETCREDENTIALS__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::TargetCredentials>
  {
    static ::SecurityLevel2::TargetCredentials_ptr tao_duplicate (
        ::SecurityLevel2::TargetCredentials_ptr
      );
    static void tao_release (
        ::SecurityLevel2::TargetCredentials_ptr
      );
    static ::SecurityLevel2::TargetCredentials_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::TargetCredentials_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_REQUIREDRIGHTS__TRAITS_CH_)
#define _SECURITYLEVEL2_REQUIREDRIGHTS__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::RequiredRights>
  {
    static ::SecurityLevel2::RequiredRights_ptr tao_duplicate (
        ::SecurityLevel2::RequiredRights_ptr
      );
    static void tao_release (
        ::SecurityLevel2::RequiredRights_ptr
      );
    static ::SecurityLevel2::RequiredRights_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::RequiredRights_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_AUDITCHANNEL__TRAITS_CH_)
#define _SECURITYLEVEL2_AUDITCHANNEL__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::AuditChannel>
  {
    static ::SecurityLevel2::AuditChannel_ptr tao_duplicate (
        ::SecurityLevel2::AuditChannel_ptr
      );
    static void tao_release (
        ::SecurityLevel2::AuditChannel_ptr
      );
    static ::SecurityLevel2::AuditChannel_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::AuditChannel_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_AUDITDECISION__TRAITS_CH_)
#define _SECURITYLEVEL2_AUDITDECISION__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::AuditDecision>
  {
    static ::SecurityLevel2::AuditDecision_ptr tao_duplicate (
        ::SecurityLevel2::AuditDecision_ptr
      );
    static void tao_release (
        ::SecurityLevel2::AuditDecision_ptr
      );
    static ::SecurityLevel2::AuditDecision_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::AuditDecision_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_ACCESSDECISION__TRAITS_CH_)
#define _SECURITYLEVEL2_ACCESSDECISION__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::AccessDecision>
  {
    static ::SecurityLevel2::AccessDecision_ptr tao_duplicate (
        ::SecurityLevel2::AccessDecision_ptr
      );
    static void tao_release (
        ::SecurityLevel2::AccessDecision_ptr
      );
    static ::SecurityLevel2::AccessDecision_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::AccessDecision_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_QOPPOLICY__TRAITS_CH_)
#define _SECURITYLEVEL2_QOPPOLICY__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::QOPPolicy>
  {
    static ::SecurityLevel2::QOPPolicy_ptr tao_duplicate (
        ::SecurityLevel2::QOPPolicy_ptr
      );
    static void tao_release (
        ::SecurityLevel2::QOPPolicy_ptr
      );
    static ::SecurityLevel2::QOPPolicy_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::QOPPolicy_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_MECHANISMPOLICY__TRAITS_CH_)
#define _SECURITYLEVEL2_MECHANISMPOLICY__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::MechanismPolicy>
  {
    static ::SecurityLevel2::MechanismPolicy_ptr tao_duplicate (
        ::SecurityLevel2::MechanismPolicy_ptr
      );
    static void tao_release (
        ::SecurityLevel2::MechanismPolicy_ptr
      );
    static ::SecurityLevel2::MechanismPolicy_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::MechanismPolicy_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_INVOCATIONCREDENTIALSPOLICY__TRAITS_CH_)
#define _SECURITYLEVEL2_INVOCATIONCREDENTIALSPOLICY__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::InvocationCredentialsPolicy>
  {
    static ::SecurityLevel2::InvocationCredentialsPolicy_ptr tao_duplicate (
        ::SecurityLevel2::InvocationCredentialsPolicy_ptr
      );
    static void tao_release (
        ::SecurityLevel2::InvocationCredentialsPolicy_ptr
      );
    static ::SecurityLevel2::InvocationCredentialsPolicy_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::InvocationCredentialsPolicy_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_ESTABLISHTRUSTPOLICY__TRAITS_CH_)
#define _SECURITYLEVEL2_ESTABLISHTRUSTPOLICY__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::EstablishTrustPolicy>
  {
    static ::SecurityLevel2::EstablishTrustPolicy_ptr tao_duplicate (
        ::SecurityLevel2::EstablishTrustPolicy_ptr
      );
    static void tao_release (
        ::SecurityLevel2::EstablishTrustPolicy_ptr
      );
    static ::SecurityLevel2::EstablishTrustPolicy_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::EstablishTrustPolicy_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_DELEGATIONDIRECTIVEPOLICY__TRAITS_CH_)
#define _SECURITYLEVEL2_DELEGATIONDIRECTIVEPOLICY__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::DelegationDirectivePolicy>
  {
    static ::SecurityLevel2::DelegationDirectivePolicy_ptr tao_duplicate (
        ::SecurityLevel2::DelegationDirectivePolicy_ptr
      );
    static void tao_release (
        ::SecurityLevel2::DelegationDirectivePolicy_ptr
      );
    static ::SecurityLevel2::DelegationDirectivePolicy_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::DelegationDirectivePolicy_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */

#if !defined (_SECURITYLEVEL2_SECURITYMANAGER__TRAITS_CH_)
#define _SECURITYLEVEL2_SECURITYMANAGER__TRAITS_CH_
  
  ACE_TEMPLATE_SPECIALIZATION
  struct TAO_Security_Export Objref_Traits< ::SecurityLevel2::SecurityManager>
  {
    static ::SecurityLevel2::SecurityManager_ptr tao_duplicate (
        ::SecurityLevel2::SecurityManager_ptr
      );
    static void tao_release (
        ::SecurityLevel2::SecurityManager_ptr
      );
    static ::SecurityLevel2::SecurityManager_ptr tao_nil (void);
    static CORBA::Boolean tao_marshal (
        ::SecurityLevel2::SecurityManager_ptr p,
        TAO_OutputCDR & cdr
      );
  };

#endif /* end #if !defined */
}

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::PrincipalAuthenticator_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::PrincipalAuthenticator_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::PrincipalAuthenticator_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::Credentials_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::Credentials_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::Credentials_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_sequence/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, const SecurityLevel2::CredentialsList &); // copying version
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::CredentialsList*); // noncopying version
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::CredentialsList *&); // deprecated
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, const SecurityLevel2::CredentialsList *&);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::ReceivedCredentials_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::ReceivedCredentials_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::ReceivedCredentials_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::TargetCredentials_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::TargetCredentials_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::TargetCredentials_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::RequiredRights_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::RequiredRights_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::RequiredRights_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::AuditChannel_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::AuditChannel_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::AuditChannel_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::AuditDecision_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::AuditDecision_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::AuditDecision_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::AccessDecision_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::AccessDecision_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::AccessDecision_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::QOPPolicy_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::QOPPolicy_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::QOPPolicy_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::MechanismPolicy_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::MechanismPolicy_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::MechanismPolicy_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::InvocationCredentialsPolicy_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::InvocationCredentialsPolicy_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::InvocationCredentialsPolicy_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::EstablishTrustPolicy_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::EstablishTrustPolicy_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::EstablishTrustPolicy_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::DelegationDirectivePolicy_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::DelegationDirectivePolicy_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::DelegationDirectivePolicy_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::SecurityManager_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::SecurityManager_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::SecurityManager_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/any_op_ch.cpp:52

TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::Current_ptr); // copying
TAO_Security_Export void operator<<= (CORBA::Any &, SecurityLevel2::Current_ptr *); // non-copying
TAO_Security_Export CORBA::Boolean operator>>= (const CORBA::Any &, SecurityLevel2::Current_ptr &);

// TAO_IDL - Generated from
// be/be_visitor_interface/cdr_op_ch.cpp:55

TAO_Security_Export CORBA::Boolean operator<< (TAO_OutputCDR &, const SecurityLevel2::RequiredRights_ptr );
TAO_Security_Export CORBA::Boolean operator>> (TAO_InputCDR &, SecurityLevel2::RequiredRights_ptr &);

// TAO_IDL - Generated from
// be/be_codegen.cpp:958

#if defined (__ACE_INLINE__)
#include "SecurityLevel2C.inl"
#endif /* defined __ACE_INLINE__ */

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */

#if defined (__BORLANDC__)
#pragma option pop
#endif /* __BORLANDC__ */

#include /**/ "ace/post.h"

#endif /* ifndef */

