1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_auth_XSSOManager_idl__
21 #define __com_sun_star_auth_XSSOManager_idl__
23 #include
<com
/sun
/star
/uno
/XInterface.idl
>
24 #include
<com
/sun
/star
/auth
/InvalidArgumentException.idl
>
25 #include
<com
/sun
/star
/auth
/InvalidCredentialException.idl
>
26 #include
<com
/sun
/star
/auth
/InvalidPrincipalException.idl
>
27 #include
<com
/sun
/star
/auth
/UnsupportedException.idl
>
28 #include
<com
/sun
/star
/auth
/XSSOAcceptorContext.idl
>
29 #include
<com
/sun
/star
/auth
/XSSOInitiatorContext.idl
>
31 module com
{ module sun
{ module star
{ module auth
{
33 /** supports the creation of security contexts for both
34 the initiator/source side and the acceptor/target side.
38 published
interface XSSOManager
: ::com
::sun
::star
::uno
::XInterface
40 /** retrieves the mechanism name of all security contexts created using
44 the mechanism name ( e.g. "KERBEROS" )
46 string getMechanism
();
49 /** creates an initiator side security context.
51 @param SourcePrincipal
52 the name of the initiator side principal for which the context
55 @param TargetPrincipal
56 the name of the target/acceptor side principal to which the source
57 principal intends to authenticate.
60 the host name associated with the target principal.
63 the newly created initiator context.
65 XSSOInitiatorContext createInitiatorContext
(
66 [in] string SourcePrincipal
,
67 [in] string TargetPrincipal
,
68 [in] string TargetHost
)
69 raises
( InvalidArgumentException
,
70 InvalidCredentialException
,
71 InvalidPrincipalException
,
72 UnsupportedException
);
75 /** creates an acceptor side security context.
77 @param TargetPrincipal
78 the name of the acceptor side principal.
81 the newly created acceptor side context.
83 XSSOAcceptorContext createAcceptorContext
(
84 [in] string TargetPrincipal
)
85 raises
( InvalidArgumentException
,
86 InvalidCredentialException
,
87 InvalidPrincipalException
,
88 UnsupportedException
);
95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */