Odil
A C++11 library for the DICOM standard
Loading...
Searching...
No Matches
UserIdentityRQ.h
Go to the documentation of this file.
1/*************************************************************************
2 * odil - Copyright (C) Universite de Strasbourg
3 * Distributed under the terms of the CeCILL-B license, as published by
4 * the CEA-CNRS-INRIA. Refer to the LICENSE file or to
5 * http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
6 * for details.
7 ************************************************************************/
8
9#ifndef _b935542d_12c9_4c81_963c_32b7996af777
10#define _b935542d_12c9_4c81_963c_32b7996af777
11
12#include <cstdint>
13#include <istream>
14#include <string>
15
16#include "odil/odil.h"
17#include "odil/pdu/Object.h"
18
19namespace odil
20{
21
22namespace pdu
23{
24
27{
28public:
30 static uint8_t const type=0x58;
31
34
36 UserIdentityRQ(std::istream & stream);
37
39 uint8_t get_type() const;
40
42 void set_type(uint8_t type);
43
46
49
51 std::string const & get_primary_field() const;
52
54 void set_primary_field(std::string const & value);
55
57 std::string const & get_secondary_field() const;
58
60 void set_secondary_field(std::string const & value);
61
62 void set_username(std::string const & username);
63
65 std::string const & username, std::string const & passcode);
66
67 void set_kerberos_service_ticket(std::string const & ticket);
68
69 void set_saml_assertion(std::string const & assertion);
70};
71
72}
73
74}
75
76#endif // _b935542d_12c9_4c81_963c_32b7996af777
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition Object.h:28
User Identity Sub-Item Structure (A-ASSOCIATE-RQ) (PS 3.7, D.3.3.7.1).
Definition UserIdentityRQ.h:27
void set_type(uint8_t type)
Set the type of the User Identity.
void set_saml_assertion(std::string const &assertion)
bool get_positive_response_requested() const
Return whether a positive response is requested.
void set_kerberos_service_ticket(std::string const &ticket)
void set_positive_response_requested(bool value)
Set whether a positive response is requested.
std::string const & get_primary_field() const
Return the primary identity field.
void set_username_and_passcode(std::string const &username, std::string const &passcode)
std::string const & get_secondary_field() const
Return the secondary identity field.
uint8_t get_type() const
Return the type of the User Identity.
UserIdentityRQ(std::istream &stream)
Read an User Identity from a stream.
UserIdentityRQ()
Create an User Identity.
void set_secondary_field(std::string const &value)
Set the secondary identity field.
void set_primary_field(std::string const &value)
Set the primary identity field.
void set_username(std::string const &username)
Definition Association.h:25
#define ODIL_API
Definition odil.h:28