Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Akila94 committed Jan 4, 2024
1 parent fc97e57 commit 23deafd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ public synchronized X509Certificate getCacheValue(String serialNumber) {
@Override
public ManageableCacheValue getNextCacheValue() {

//changes to the map are reflected on the keySet. And its iterator is weakly consistent. so will never
//throw concurrent modification exception.
if (iterator.hasNext()) {
return hashMap.get(iterator.next().getKey());
} else {
Expand Down Expand Up @@ -135,7 +133,7 @@ public synchronized void removeCacheValue(String serialNumber) {
}

/**
* This is the wrapper class of the actual cache value which is a X509CRL.
* This is the wrapper class of the actual cache value.
*/
private class CertCacheValue implements ManageableCacheValue {

Expand All @@ -159,9 +157,6 @@ public String getKey() {
return serialNumber;
}

/**
* CRL has a validity period. We can reuse a downloaded CRL within that period.
*/
public boolean isValid() {

// Will be always return true since we only set defined data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,12 @@ public static TrustStoreHolder getInstance() {
}

public KeyStore getClientTrustStore() {

return clientTrustStore;
}

public void setClientTrustStore(KeyStore clientTrustStore) {

this.clientTrustStore = clientTrustStore;
}

Expand Down

This file was deleted.

0 comments on commit 23deafd

Please sign in to comment.