00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TAO_SL3_SECURITY_MANAGER_H
00015 #define TAO_SL3_SECURITY_MANAGER_H
00016
00017 #include "ace/pre.h"
00018 #include "orbsvcs/Security/security_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "orbsvcs/SecurityLevel3C.h"
00025
00026 #include "tao/LocalObject.h"
00027
00028 #if defined(_MSC_VER)
00029 #pragma warning(push)
00030 #pragma warning(disable:4250)
00031 #endif
00032
00033
00034 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00035
00036 namespace TAO
00037 {
00038 namespace SL3
00039 {
00040
00041
00042
00043
00044
00045
00046
00047 class SecurityManager
00048 : public virtual SecurityLevel3::SecurityManager,
00049 public virtual TAO_Local_RefCounted_Object
00050 {
00051 public:
00052
00053
00054 SecurityManager (SecurityLevel3::CredentialsCurator_ptr cc);
00055
00056
00057
00058
00059
00060
00061
00062
00063 virtual SecurityLevel3::CredentialsCurator_ptr credentials_curator ();
00064
00065 virtual SecurityLevel3::TargetCredentials_ptr get_target_credentials (
00066 CORBA::Object_ptr the_object);
00067
00068 virtual SecurityLevel3::ContextEstablishmentPolicy_ptr
00069 create_context_estab_policy (
00070 SecurityLevel3::CredsDirective creds_directive,
00071 const SecurityLevel3::OwnCredentialsList & creds_list,
00072 SecurityLevel3::FeatureDirective use_client_auth,
00073 SecurityLevel3::FeatureDirective use_target_auth,
00074 SecurityLevel3::FeatureDirective use_confidentiality,
00075 SecurityLevel3::FeatureDirective use_integrity);
00076
00077 virtual SecurityLevel3::ObjectCredentialsPolicy_ptr
00078 create_object_creds_policy (
00079 const SecurityLevel3::OwnCredentialsList & cred_list);
00080
00081
00082 protected:
00083
00084
00085
00086
00087
00088
00089 virtual ~SecurityManager (void);
00090
00091 private:
00092
00093
00094
00095 SecurityLevel3::CredentialsCurator_var credentials_curator_;
00096
00097 };
00098
00099 }
00100 }
00101
00102 TAO_END_VERSIONED_NAMESPACE_DECL
00103
00104
00105 #if defined(_MSC_VER)
00106 #pragma warning(pop)
00107 #endif
00108
00109 #include "ace/post.h"
00110
00111 #endif