public interface RemoteRepository
RemoteCredentials
and
use this instance to login into the repository and obtain a RemoteSession
object.Modifier and Type | Method and Description |
---|---|
RemoteCredentials |
createBasicCredentials(String user,
char[] password)
Create a
RemoteCredentials object representing an authentication
strategy based on a user name and a password. |
RemoteCredentials |
createImpersonationCredentials(Set<String> principals)
Create a
RemoteCredentials object representing an impersonation
authentication strategy. |
RemoteSession |
login(RemoteCredentials credentials)
Create a remote session exposing some repository operations.
|
RemoteCredentials createBasicCredentials(String user, char[] password)
RemoteCredentials
object 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.password
- Password.RemoteCredentials
object representing an authentication
strategy based on a user name and password.RemoteCredentials createImpersonationCredentials(Set<String> principals)
RemoteCredentials
object 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 RemoteCredentials
and will create a RemoteSession
bound to the principals specified
to this method.principals
- The set of principals to impersonate into.RemoteCredentials
object 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-2015 The Apache Software Foundation. All Rights Reserved.