xref: /trunk/main/offapi/com/sun/star/auth/SSOManagerFactory.idl (revision cdf0e10c4e3984b49a9502b011690b615761d4a3)
1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#ifndef __com_sun_star_auth_SSOManagerFactory_idl__
29*cdf0e10cSrcweir#define __com_sun_star_auth_SSOManagerFactory_idl__
30*cdf0e10cSrcweir
31*cdf0e10cSrcweir#ifndef __com_sun_star_auth_XSSOManagerFactory_idl_
32*cdf0e10cSrcweir#include <com/sun/star/auth/XSSOManagerFactory.idl>
33*cdf0e10cSrcweir#endif
34*cdf0e10cSrcweir
35*cdf0e10cSrcweirmodule com { module sun { module star { module auth {
36*cdf0e10cSrcweir
37*cdf0e10cSrcweir/** represents a starting point for Single Signon interactions.
38*cdf0e10cSrcweir    <P>The Single Signon ( SSO ) apis provide UNO based access to underlying
39*cdf0e10cSrcweir       SSO implementations ( e.g. Kerberos ). The aim of the SSO apis is to
40*cdf0e10cSrcweir       enable authentication ( possibly mutual ) between a client ( source or
41*cdf0e10cSrcweir       initiator ) and a network service ( target or acceptor ). This is
42*cdf0e10cSrcweir       achieved via. the creation and processing of security tokens sent
43*cdf0e10cSrcweir       between the two parties. The steps which should be followed to
44*cdf0e10cSrcweir       successfully use the SSO apis are as follows:
45*cdf0e10cSrcweir    <UL>
46*cdf0e10cSrcweir        <LI>Create an <type>XSSOManagerFactory</type> instance</LI>
47*cdf0e10cSrcweir        <LI>Use this factory to create/retrieve an <type>XSSOManager</type>
48*cdf0e10cSrcweir            instance.</LI>
49*cdf0e10cSrcweir        <LI>Depending on whether your code is acting as SSO source or target,
50*cdf0e10cSrcweir            you should use the <type>XSSOManager</type> instance to create an
51*cdf0e10cSrcweir            initiator security context, <type>XSSOInitiatorContext</type> or an
52*cdf0e10cSrcweir            acceptor security context, <type>XSSOAcceptorContext</type>
53*cdf0e10cSrcweir            respectively.</LI>
54*cdf0e10cSrcweir        <LI>On the initiator side, use the previously created context to process
55*cdf0e10cSrcweir            security tokens received from the acceptor side and to create
56*cdf0e10cSrcweir            security tokens to send to the acceptor side. On the acceptor side,
57*cdf0e10cSrcweir            use the previously created context to process security tokens
58*cdf0e10cSrcweir            received from the initiator side and to create security tokens to
59*cdf0e10cSrcweir            send to the initiator side.</LI>
60*cdf0e10cSrcweir    </UL>
61*cdf0e10cSrcweir
62*cdf0e10cSrcweir    @since OOo 1.1.2
63*cdf0e10cSrcweir */
64*cdf0e10cSrcweir
65*cdf0e10cSrcweirpublished service SSOManagerFactory
66*cdf0e10cSrcweir{
67*cdf0e10cSrcweir   /** supports the creation of <type>XSSOManager</type> instances which can
68*cdf0e10cSrcweir       subsequently be used to create security contexts.
69*cdf0e10cSrcweir    */
70*cdf0e10cSrcweir    interface XSSOManagerFactory;
71*cdf0e10cSrcweir};
72*cdf0e10cSrcweir
73*cdf0e10cSrcweir}; }; }; };
74*cdf0e10cSrcweir
75*cdf0e10cSrcweir#endif
76