public abstract class DominoClientBuilder extends Object
Constructor and Description |
---|
DominoClientBuilder() |
Modifier and Type | Method and Description |
---|---|
DominoClientBuilder |
asIDUser()
Accesses NSFs as the owner of the active user ID file
|
DominoClientBuilder |
asUser(List<String> userNamesList)
Accesses NSFs as a specific user
|
DominoClientBuilder |
asUser(String userName)
Accesses NSFs as a specific user
|
DominoClientBuilder |
authenticateUser(String serverName,
String userName,
String password)
Accesses NSFs as a specific user, validating the password when
the client is constructed.
|
DominoClientBuilder |
authenticateUserWithToken(String serverName,
Object token)
Accesses NSFs as a specific user, validating the provided credentials token with any registered providers.
|
abstract DominoClient |
build()
Builds a DominoClient
|
protected String |
getCredPassword() |
protected String |
getCredServer() |
protected Object |
getCredToken() |
protected String |
getCredUser() |
protected Path |
getIDFilePath() |
protected String |
getIDPassword() |
protected String |
getUserName() |
protected List<String> |
getUserNamesList() |
protected boolean |
isAsIDUser() |
protected boolean |
isFullAccess() |
protected boolean |
isMaxInternetAccess() |
static DominoClientBuilder |
newDominoClient()
Constructor for generating a DominoClient
|
DominoClientBuilder |
withFullAccess()
Accesses the NSFs and server with full access
|
DominoClientBuilder |
withMaxInternetAccess()
Applies maximum internet access settings from the NSF to the requests
|
public static DominoClientBuilder newDominoClient()
IllegalStateException
- if there is no implementation of DominoClientBuilder
availablepublic DominoClientBuilder asIDUser()
public DominoClientBuilder asUser(String userName)
userName
- Domino username to access aspublic DominoClientBuilder asUser(List<String> userNamesList)
userNamesList
- Domino username to access aspublic DominoClientBuilder authenticateUser(String serverName, String userName, String password)
This is distinct from the password assigned to a Notes ID file, but instead refers to credentials according to an active local runtime or remote server.
serverName
- remote Domino server to authenticate against. May be null
to use
the local runtimeuserName
- Domino username to access aspassword
- the user's passwordIllegalArgumentException
- if userName is null or emptypublic DominoClientBuilder authenticateUserWithToken(String serverName, Object token)
This is distinct from the password assigned to a Notes ID file, but instead refers to credentials according to an active local runtime or remote server.
serverName
- the name of the server to contacttoken
- the token to use to authenticate. The class of the token depends on the available
provider implementationsNullPointerException
- if token
is nullpublic DominoClientBuilder withFullAccess()
public DominoClientBuilder withMaxInternetAccess()
public abstract DominoClient build()
protected boolean isFullAccess()
protected Path getIDFilePath()
protected String getIDPassword()
protected boolean isMaxInternetAccess()
protected boolean isAsIDUser()
protected String getUserName()
protected String getCredServer()
protected String getCredUser()
protected String getCredPassword()
protected Object getCredToken()
Copyright © 2019–2021 HCL. All rights reserved.