Package org.apache.maven.settings.crypto
Class DefaultSettingsDecryptionRequest
- java.lang.Object
-
- org.apache.maven.settings.crypto.DefaultSettingsDecryptionRequest
-
- All Implemented Interfaces:
SettingsDecryptionRequest
public class DefaultSettingsDecryptionRequest extends Object implements SettingsDecryptionRequest
Collects parameters that control the decryption of settings.- Author:
- Benjamin Bentmann
-
-
Constructor Summary
Constructors Constructor Description DefaultSettingsDecryptionRequest()
Creates an empty request.DefaultSettingsDecryptionRequest(Proxy proxy)
Creates a new request to decrypt the specified proxy.DefaultSettingsDecryptionRequest(Server server)
Creates a new request to decrypt the specified server.DefaultSettingsDecryptionRequest(Settings settings)
Creates a new request to decrypt the specified settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Proxy>
getProxies()
Gets the proxies whose passwords should be decrypted.List<Server>
getServers()
Gets the servers whose passwords should be decrypted.DefaultSettingsDecryptionRequest
setProxies(List<Proxy> proxies)
Sets the proxies whose passwords should be decrypted.DefaultSettingsDecryptionRequest
setServers(List<Server> servers)
Sets the servers whose passwords should be decrypted.
-
-
-
Constructor Detail
-
DefaultSettingsDecryptionRequest
public DefaultSettingsDecryptionRequest()
Creates an empty request.
-
DefaultSettingsDecryptionRequest
public DefaultSettingsDecryptionRequest(Settings settings)
Creates a new request to decrypt the specified settings.- Parameters:
settings
- The settings to decrypt, must not benull
.
-
DefaultSettingsDecryptionRequest
public DefaultSettingsDecryptionRequest(Server server)
Creates a new request to decrypt the specified server.- Parameters:
server
- The server to decrypt, must not benull
.
-
DefaultSettingsDecryptionRequest
public DefaultSettingsDecryptionRequest(Proxy proxy)
Creates a new request to decrypt the specified proxy.- Parameters:
proxy
- The proxy to decrypt, must not benull
.
-
-
Method Detail
-
getServers
public List<Server> getServers()
Description copied from interface:SettingsDecryptionRequest
Gets the servers whose passwords should be decrypted.- Specified by:
getServers
in interfaceSettingsDecryptionRequest
- Returns:
- The servers to decrypt, never
null
.
-
setServers
public DefaultSettingsDecryptionRequest setServers(List<Server> servers)
Description copied from interface:SettingsDecryptionRequest
Sets the servers whose passwords should be decrypted.- Specified by:
setServers
in interfaceSettingsDecryptionRequest
- Parameters:
servers
- The servers to decrypt, may benull
.- Returns:
- This request, never
null
.
-
getProxies
public List<Proxy> getProxies()
Description copied from interface:SettingsDecryptionRequest
Gets the proxies whose passwords should be decrypted.- Specified by:
getProxies
in interfaceSettingsDecryptionRequest
- Returns:
- The proxies to decrypt, never
null
.
-
setProxies
public DefaultSettingsDecryptionRequest setProxies(List<Proxy> proxies)
Description copied from interface:SettingsDecryptionRequest
Sets the proxies whose passwords should be decrypted.- Specified by:
setProxies
in interfaceSettingsDecryptionRequest
- Parameters:
proxies
- The proxies to decrypt, may benull
.- Returns:
- This request, never
null
.
-
-