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 module com
{ module sun
{ module star
{ module auth
{
22 /** supports password caching for security mechanisms which use passwords as
23 credentials or as an input to credential creation but don't have
24 an external method to cache these passwords.
29 published
interface XSSOPasswordCache
: ::com
::sun
::star
::uno
::XInterface
31 /** adds a username/password combination to the cache.
33 If an entry for the specified username already exists in the cache, it
40 the associated password
43 indicates whether or not the username/password combination should be
46 void addPassword
( [in] string UserName
,
48 [in] boolean Persist
)
49 raises
( InvalidArgumentException
,
50 PersistenceFailureException
);
52 /** retrieves a password for a given user from the cache.
54 Non persistent cache is searched first, followed by the
55 persistent cache ( if it exists ).
58 the name of the user whose password should be retrieved
61 indicates whether or not the password is persistent
66 string getPassword
( [in] string UserName
, [out] boolean Persist
)
67 raises
( InvalidArgumentException
,
68 PersistenceFailureException
);
70 /** removes a password from the cache
73 the name of the user whose password should be removed.
76 indicates whether or not the password should also be removed, if
77 present, from persistent cache.
79 void removePassword
( [in] string UserName
, [in] boolean RemovePersist
)
80 raises
( InvalidArgumentException
,
81 PersistenceFailureException
);
86 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */