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.ProxygetProxy()Gets the decrypted proxy.ServergetServer()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:SettingsDecryptionResultGets the decrypted server. This is a convenience method to retrieve the first element fromSettingsDecryptionResult.getServers().- Specified by:
getServerin interfaceSettingsDecryptionResult- Returns:
- The decrypted server or
null.
-
getServers
public java.util.List<Server> getServers()
Description copied from interface:SettingsDecryptionResultGets the decrypted servers.- Specified by:
getServersin interfaceSettingsDecryptionResult- Returns:
- The decrypted server, can be empty but never
null.
-
getProxy
public Proxy getProxy()
Description copied from interface:SettingsDecryptionResultGets the decrypted proxy. This is a convenience method to retrieve the first element fromSettingsDecryptionResult.getProxies().- Specified by:
getProxyin interfaceSettingsDecryptionResult- Returns:
- The decrypted proxy or
null.
-
getProxies
public java.util.List<Proxy> getProxies()
Description copied from interface:SettingsDecryptionResultGets the decrypted proxies.- Specified by:
getProxiesin interfaceSettingsDecryptionResult- Returns:
- The decrypted proxy, can be empty but never
null.
-
getProblems
public java.util.List<SettingsProblem> getProblems()
Description copied from interface:SettingsDecryptionResultGets the problems that were encountered during the settings decryption.- Specified by:
getProblemsin interfaceSettingsDecryptionResult- Returns:
- The problems that were encountered during the decryption, can be empty but never
null.
-
-