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 java.lang.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(org.apache.maven.settings.Proxy proxy)Creates a new request to decrypt the specified proxy.DefaultSettingsDecryptionRequest(org.apache.maven.settings.Server server)Creates a new request to decrypt the specified server.DefaultSettingsDecryptionRequest(org.apache.maven.settings.Settings settings)Creates a new request to decrypt the specified settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.apache.maven.settings.Proxy>getProxies()Gets the proxies whose passwords should be decrypted.java.util.List<org.apache.maven.settings.Server>getServers()Gets the servers whose passwords should be decrypted.DefaultSettingsDecryptionRequestsetProxies(java.util.List<org.apache.maven.settings.Proxy> proxies)Sets the proxies whose passwords should be decrypted.DefaultSettingsDecryptionRequestsetServers(java.util.List<org.apache.maven.settings.Server> servers)Sets the servers whose passwords should be decrypted.
-
-
-
Constructor Detail
-
DefaultSettingsDecryptionRequest
public DefaultSettingsDecryptionRequest()
Creates an empty request.
-
DefaultSettingsDecryptionRequest
public DefaultSettingsDecryptionRequest(org.apache.maven.settings.Settings settings)
Creates a new request to decrypt the specified settings.- Parameters:
settings- The settings to decrypt, must not benull.
-
DefaultSettingsDecryptionRequest
public DefaultSettingsDecryptionRequest(org.apache.maven.settings.Server server)
Creates a new request to decrypt the specified server.- Parameters:
server- The server to decrypt, must not benull.
-
DefaultSettingsDecryptionRequest
public DefaultSettingsDecryptionRequest(org.apache.maven.settings.Proxy proxy)
Creates a new request to decrypt the specified proxy.- Parameters:
proxy- The proxy to decrypt, must not benull.
-
-
Method Detail
-
getServers
public java.util.List<org.apache.maven.settings.Server> getServers()
Description copied from interface:SettingsDecryptionRequestGets the servers whose passwords should be decrypted.- Specified by:
getServersin interfaceSettingsDecryptionRequest- Returns:
- The servers to decrypt, never
null.
-
setServers
public DefaultSettingsDecryptionRequest setServers(java.util.List<org.apache.maven.settings.Server> servers)
Description copied from interface:SettingsDecryptionRequestSets the servers whose passwords should be decrypted.- Specified by:
setServersin interfaceSettingsDecryptionRequest- Parameters:
servers- The servers to decrypt, may benull.- Returns:
- This request, never
null.
-
getProxies
public java.util.List<org.apache.maven.settings.Proxy> getProxies()
Description copied from interface:SettingsDecryptionRequestGets the proxies whose passwords should be decrypted.- Specified by:
getProxiesin interfaceSettingsDecryptionRequest- Returns:
- The proxies to decrypt, never
null.
-
setProxies
public DefaultSettingsDecryptionRequest setProxies(java.util.List<org.apache.maven.settings.Proxy> proxies)
Description copied from interface:SettingsDecryptionRequestSets the proxies whose passwords should be decrypted.- Specified by:
setProxiesin interfaceSettingsDecryptionRequest- Parameters:
proxies- The proxies to decrypt, may benull.- Returns:
- This request, never
null.
-
-