public interface RemoteRepository
Most methods require authentication to be used. As such, a client of this
interface is required to create an instance of
use this instance to login into the repository and obtain a
|Modifier and Type||Method and Description|
Create a remote session exposing some repository operations.
RemoteCredentials createBasicCredentials(String user, char password)
RemoteCredentialsobject representing an authentication strategy based on a user name and a password. This kind of credentials delegates authentication to the repository, using a user identified by the user name and password provided to this method.
user- User name.
RemoteCredentialsobject representing an authentication strategy based on a user name and password.
RemoteCredentials createImpersonationCredentials(Set<String> principals)
RemoteCredentialsobject representing an impersonation authentication strategy. If this authentication strategy is used, the repository will not make any attempt to perform authentication. It will instead trust the information provided by the
RemoteCredentialsand will create a
RemoteSessionbound to the principals specified to this method.
principals- The set of principals to impersonate into.
RemoteCredentialsobject representing an authentication strategy based on impersonation.
RemoteSession login(RemoteCredentials credentials) throws RemoteLoginException
credentials- An object representing an authentication strategy to be used when invoking repository operations.
RemoteLoginException- if it was not possible to authenticate the given credentials.
Copyright © 2012-2017 The Apache Software Foundation. All Rights Reserved.