Odil
A C++11 library for the DICOM standard
Toggle main menu visibility
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
19
namespace
odil
20
{
21
22
namespace
pdu
23
{
24
26
class
ODIL_API
UserIdentityRQ
:
public
Object
27
{
28
public
:
30
static
uint8_t
const
type
=0x58;
31
33
UserIdentityRQ
();
34
36
UserIdentityRQ
(std::istream & stream);
37
39
uint8_t
get_type
()
const
;
40
42
void
set_type
(uint8_t
type
);
43
45
bool
get_positive_response_requested
()
const
;
46
48
void
set_positive_response_requested
(
bool
value);
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
64
void
set_username_and_passcode
(
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
Object.h
odil::pdu::Object
Base class for all PDU-related high-level objects (PDU, items and sub-items).
Definition
Object.h:28
odil::pdu::UserIdentityRQ::set_type
void set_type(uint8_t type)
Set the type of the User Identity.
odil::pdu::UserIdentityRQ::set_saml_assertion
void set_saml_assertion(std::string const &assertion)
odil::pdu::UserIdentityRQ::get_positive_response_requested
bool get_positive_response_requested() const
Return whether a positive response is requested.
odil::pdu::UserIdentityRQ::set_kerberos_service_ticket
void set_kerberos_service_ticket(std::string const &ticket)
odil::pdu::UserIdentityRQ::set_positive_response_requested
void set_positive_response_requested(bool value)
Set whether a positive response is requested.
odil::pdu::UserIdentityRQ::get_primary_field
std::string const & get_primary_field() const
Return the primary identity field.
odil::pdu::UserIdentityRQ::set_username_and_passcode
void set_username_and_passcode(std::string const &username, std::string const &passcode)
odil::pdu::UserIdentityRQ::get_secondary_field
std::string const & get_secondary_field() const
Return the secondary identity field.
odil::pdu::UserIdentityRQ::get_type
uint8_t get_type() const
Return the type of the User Identity.
odil::pdu::UserIdentityRQ::UserIdentityRQ
UserIdentityRQ(std::istream &stream)
Read an User Identity from a stream.
odil::pdu::UserIdentityRQ::UserIdentityRQ
UserIdentityRQ()
Create an User Identity.
odil::pdu::UserIdentityRQ::set_secondary_field
void set_secondary_field(std::string const &value)
Set the secondary identity field.
odil::pdu::UserIdentityRQ::set_primary_field
void set_primary_field(std::string const &value)
Set the primary identity field.
odil::pdu::UserIdentityRQ::type
static uint8_t const type
Item type.
Definition
UserIdentityRQ.h:30
odil::pdu::UserIdentityRQ::set_username
void set_username(std::string const &username)
odil::pdu
Definition
AAbort.h:21
odil
Definition
Association.h:25
odil.h
ODIL_API
#define ODIL_API
Definition
odil.h:28
src
odil
pdu
UserIdentityRQ.h
Generated by
1.17.0