9 #ifndef _a52696bc_5c6e_402d_a343_6cb085eb0138 10 #define _a52696bc_5c6e_402d_a343_6cb085eb0138 16 #include <dcmtk/config/osconfig.h> 17 #include <dcmtk/dcmnet/assoc.h> 19 #include "dcmtkpp/Network.h" 25 enum class UserIdentityType
29 UsernameAndPassword = 2,
55 std::string
const & get_own_ae_title()
const;
57 void set_own_ae_title(std::string
const & ae_title);
63 std::string
const & get_peer_host_name()
const;
65 void set_peer_host_name(std::string
const & host_name);
68 uint16_t get_peer_port()
const;
70 void set_peer_port(uint16_t port);
73 std::string
const & get_peer_ae_title()
const;
75 void set_peer_ae_title(std::string
const & ae_title);
82 void add_presentation_context(std::string
const & abstract_syntax,
83 std::vector<std::string>
const & transfer_syntaxes,
84 T_ASC_SC_ROLE role=ASC_SC_ROLE_DEFAULT);
92 UserIdentityType get_user_identity_type()
const;
94 void set_user_identity_type(UserIdentityType type);
97 std::string
const & get_user_identity_primary_field()
const;
99 void set_user_identity_primary_field(std::string
const & value);
102 std::string
const & get_user_identity_secondary_field()
const;
104 void set_user_identity_secondary_field(std::string
const & value);
107 void set_user_identity_to_none();
110 void set_user_identity_to_username(std::string
const & username);
113 void set_user_identity_to_username_and_password(
114 std::string
const & username, std::string
const & password);
117 void set_user_identity_to_kerberos(std::string
const & ticket);
120 void set_user_identity_to_saml(std::string
const & assertion);
128 bool is_associated()
const;
136 void associate(
Network & network);
144 void receive(
Network & network,
bool accept_all=
false);
147 T_ASC_Association * get_association();
160 std::string _own_ae_title;
162 std::string _peer_host_name;
164 std::string _peer_ae_title;
166 struct PresentationContext
168 std::string abstract_syntax;
169 std::vector<std::string> transfer_syntaxes;
173 std::vector<PresentationContext> _presentation_contexts;
175 UserIdentityType _user_identity_type;
176 std::string _user_identity_primary_field;
177 std::string _user_identity_secondary_field;
179 T_ASC_Association * _association;
184 #endif // _a52696bc_5c6e_402d_a343_6cb085eb0138 Wrapper around the T_ASC_Network class.
Definition: Network.h:23
Definition: Association.cpp:22
Wrapper around the T_ASC_Association class.
Definition: Association.h:39