org.apache.maven.settings.crypto
Class DefaultSettingsDecryptionRequest

java.lang.Object
  extended by 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
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
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 be null.

DefaultSettingsDecryptionRequest

public DefaultSettingsDecryptionRequest(Server server)
Creates a new request to decrypt the specified server.

Parameters:
server - The server to decrypt, must not be null.

DefaultSettingsDecryptionRequest

public DefaultSettingsDecryptionRequest(Proxy proxy)
Creates a new request to decrypt the specified proxy.

Parameters:
proxy - The proxy to decrypt, must not be null.
Method Detail

getServers

public List<Server> getServers()
Description copied from interface: SettingsDecryptionRequest
Gets the servers whose passwords should be decrypted.

Specified by:
getServers in interface SettingsDecryptionRequest
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 interface SettingsDecryptionRequest
Parameters:
servers - The servers to decrypt, may be null.
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 interface SettingsDecryptionRequest
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 interface SettingsDecryptionRequest
Parameters:
proxies - The proxies to decrypt, may be null.
Returns:
This request, never null.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.