Package org.apache.maven.settings.crypto
Class DefaultSettingsDecryptionResult
- java.lang.Object
-
- org.apache.maven.settings.crypto.DefaultSettingsDecryptionResult
-
- All Implemented Interfaces:
SettingsDecryptionResult
class DefaultSettingsDecryptionResult extends java.lang.Object implements SettingsDecryptionResult
Collects the output of the settings decrypter.
-
-
Constructor Summary
Constructors Constructor Description DefaultSettingsDecryptionResult(java.util.List<Server> servers, java.util.List<Proxy> proxies, java.util.List<SettingsProblem> problems)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<SettingsProblem>
getProblems()
Gets the problems that were encountered during the settings decryption.java.util.List<Proxy>
getProxies()
Gets the decrypted proxies.Proxy
getProxy()
Gets the decrypted proxy.Server
getServer()
Gets the decrypted server.java.util.List<Server>
getServers()
Gets the decrypted servers.
-
-
-
Field Detail
-
servers
private java.util.List<Server> servers
-
proxies
private java.util.List<Proxy> proxies
-
problems
private java.util.List<SettingsProblem> problems
-
-
Constructor Detail
-
DefaultSettingsDecryptionResult
DefaultSettingsDecryptionResult(java.util.List<Server> servers, java.util.List<Proxy> proxies, java.util.List<SettingsProblem> problems)
-
-
Method Detail
-
getServer
public Server getServer()
Description copied from interface:SettingsDecryptionResult
Gets the decrypted server. This is a convenience method to retrieve the first element fromSettingsDecryptionResult.getServers()
.- Specified by:
getServer
in interfaceSettingsDecryptionResult
- Returns:
- The decrypted server or
null
.
-
getServers
public java.util.List<Server> getServers()
Description copied from interface:SettingsDecryptionResult
Gets the decrypted servers.- Specified by:
getServers
in interfaceSettingsDecryptionResult
- Returns:
- The decrypted server, can be empty but never
null
.
-
getProxy
public Proxy getProxy()
Description copied from interface:SettingsDecryptionResult
Gets the decrypted proxy. This is a convenience method to retrieve the first element fromSettingsDecryptionResult.getProxies()
.- Specified by:
getProxy
in interfaceSettingsDecryptionResult
- Returns:
- The decrypted proxy or
null
.
-
getProxies
public java.util.List<Proxy> getProxies()
Description copied from interface:SettingsDecryptionResult
Gets the decrypted proxies.- Specified by:
getProxies
in interfaceSettingsDecryptionResult
- Returns:
- The decrypted proxy, can be empty but never
null
.
-
getProblems
public java.util.List<SettingsProblem> getProblems()
Description copied from interface:SettingsDecryptionResult
Gets the problems that were encountered during the settings decryption.- Specified by:
getProblems
in interfaceSettingsDecryptionResult
- Returns:
- The problems that were encountered during the decryption, can be empty but never
null
.
-
-