Skip to content

Commit ecefead

Browse files
committed
Reformat code
1 parent dde69c3 commit ecefead

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/org/purejava/KeepassProxyAccess.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public KeepassProxyAccess() {
5757
scheduler = Executors.newSingleThreadScheduledExecutor();
5858
connection.addPropertyChangeListener(this);
5959
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
60-
connection.removePropertyChangeListener(this);
60+
connection.removePropertyChangeListener(this);
6161
try {
6262
shutdown();
6363
} catch (Exception e) {
@@ -71,9 +71,9 @@ public KeepassProxyAccess() {
7171
/**
7272
* Loads the {@link org.purejava.Credentials Credentials} from disc, if available, to setup this library
7373
* so that it can be used to send requests to and receive requests from a KeePassXC database.
74-
* @see org.purejava.Credentials
7574
*
7675
* @return An Optional of the Credentials read from disc in case they are available, an empty Optional otherwise.
76+
* @see org.purejava.Credentials
7777
*/
7878
private Optional<Credentials> loadCredentials() {
7979
try (var fileIs = new FileInputStream(fileLocation);
@@ -90,9 +90,9 @@ private Optional<Credentials> loadCredentials() {
9090
/**
9191
* Saves {@link org.purejava.Credentials Credentials} in a delayed background thread to disc, as this is a time consuming
9292
* operation that might fail.
93-
* @see org.purejava.Credentials
9493
*
9594
* @param credentials An Optional of the Credentials to be saved.
95+
* @see org.purejava.Credentials
9696
*/
9797
private void scheduleSave(Optional<Credentials> credentials) {
9898
if (credentials.isEmpty()) {
@@ -109,9 +109,9 @@ private void scheduleSave(Optional<Credentials> credentials) {
109109

110110
/**
111111
* Saves {@link org.purejava.Credentials Credentials} to disc.
112-
* @see org.purejava.Credentials
113112
*
114113
* @param credentials An Optional of the Credentials to be saved.
114+
* @see org.purejava.Credentials
115115
*/
116116
private void saveCredentials(Optional<Credentials> credentials) {
117117
LOG.debug("Attempting to save credentials");
@@ -145,11 +145,11 @@ public Map<String, String> exportConnection() {
145145
/**
146146
* Establish a connection to the KeePassXC proxy. This is required for every session.
147147
* The closing of the connection is handled automatically.
148-
* @see org.keepassxc.LinuxMacConnection
149-
* @see org.keepassxc.WindowsConnection
150148
*
151149
* @return True, if connecting to the proxy was successful, false, if connecting failed due to technical reasons
152150
* or the proxy wasn't started.
151+
* @see org.keepassxc.LinuxMacConnection
152+
* @see org.keepassxc.WindowsConnection
153153
*/
154154
public boolean connect() {
155155
try {
@@ -184,13 +184,13 @@ public boolean associate() {
184184
* a connection to KeePassXC, the public idKey and the public associateId are required. With these parameters,
185185
* {@link org.purejava.KeepassProxyAccess#testAssociate(String, String) testAssociate} is called to verify the
186186
* association. A valid association enables the client to send requests to and receive requests from KeePassXC.
187-
* @see org.purejava.KeepassProxyAccess#testAssociate(String, String)
188187
*
189188
* @return True, if a valid association with KeePassXC exists, false otherwise.
189+
* @see org.purejava.KeepassProxyAccess#testAssociate(String, String)
190190
*/
191191
public boolean connectionAvailable() {
192192
return getIdKeyPairPublicKey() != null &&
193-
!getIdKeyPairPublicKey().isEmpty() &&
193+
!getIdKeyPairPublicKey().isEmpty() &&
194194
getAssociateId() != null &&
195195
!getAssociateId().isEmpty() &&
196196
testAssociate(getAssociateId(), getIdKeyPairPublicKey());
@@ -261,14 +261,14 @@ public Map<String, Object> getLogins(String url, String submitUrl, boolean httpA
261261
* Checks, whether a login exists and a given password is stored in the KeePassXC databases. This method calls
262262
* {@link org.purejava.KeepassProxyAccess#getLogins(String, String, boolean, List) getLogins} to search
263263
* the KeePassXC databases.
264-
* @see org.purejava.KeepassProxyAccess#getLogins(String, String, boolean, List)
265264
*
266265
* @param url The URL credentials are looked up for.
267266
* @param submitUrl URL that can be passed along amd gets added to entry properties.
268267
* @param httpAuth Include database entries into search that are restricted to HTTP Basic Auth.
269268
* @param list Id / key combinations identifying and granting access to KeePassXC databases.
270269
* @param password Password to check.
271270
* @return ValidLogin The object describes whether a valid login exists for the given URL and whether the given password matches too.
271+
* @see org.purejava.KeepassProxyAccess#getLogins(String, String, boolean, List)
272272
*/
273273
public ValidLogin loginExists(String url, String submitUrl, boolean httpAuth, List<Map<String, String>> list, String password) {
274274
var response = getLogins(url, submitUrl, httpAuth, list);

0 commit comments

Comments
 (0)