summaryrefslogtreecommitdiff
path: root/TAO/tests/Portable_Interceptors/Benchmark/test_i.cpp
blob: ae5ec11be49f1d44ade7c60bd3760ba3b460da59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// $Id$

#include "test_i.h"
#include "marker.h"

ACE_RCSID(Benchmark, test_i, "$Id$")

Secure_Vault_i::Secure_Vault_i (CORBA::ORB_ptr orb)
  : orb_ (CORBA::ORB::_duplicate (orb))
{
}
// ctor

CORBA::Short 
Secure_Vault_i::ready (CORBA::Environment &)
  ACE_THROW_SPEC ((CORBA::SystemException))
{
  return 1;
}

void 
Secure_Vault_i::authenticate (const char * user,
              CORBA::Environment &ACE_TRY_ENV)
    ACE_THROW_SPEC ((CORBA::SystemException,
                     Test_Interceptors::Invalid))
{
  if (ACE_OS::strcmp (user, "root") != 0)
    ACE_THROW (Test_Interceptors::Invalid ());
  
}

CORBA::Long 
Secure_Vault_i::update_records (CORBA::Long id,
                const Test_Interceptors::Secure_Vault::Record & val,
                CORBA::Environment &ACE_TRY_ENV)
  ACE_THROW_SPEC ((CORBA::SystemException))
{
return 1;
}

void
Secure_Vault_i::shutdown (CORBA::Environment&)
    ACE_THROW_SPEC (())
{
  this->orb_->shutdown ();
}