Skip to content

Commit 90ea7f5

Browse files
author
Rathna Natarajan
committed
Code cleanup
1 parent af3a2a0 commit 90ea7f5

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/main/java/com/axway/CertHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
public class CertHelper {
2020

21+
2122
final JcaPEMKeyConverter jcaPEMKeyConverter = new JcaPEMKeyConverter();
2223

2324
public PKCS12 parseP12(File file, char[] password) throws KeyStoreException, NoSuchAlgorithmException, IOException, CertificateException, UnrecoverableKeyException {
@@ -122,7 +123,6 @@ public List<X509Certificate> parseX509(String base64EncodedCertOrFilePath) throw
122123
}
123124
}
124125
}
125-
// return (X509Certificate) certificateFactory.generateCertificate(inputStream);
126126
}
127127

128128
}

src/main/java/com/axway/ExternalConfigLoader.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,6 @@ private PKCS12 importCertAndKeyAndCA(EntityStore entityStore, String cert, Strin
697697
importPublicCertificate(x509Certificate, entityStore);
698698
Trace.info("Imported root / intermediate certificate");
699699
}
700-
//handle CA Certificate chain
701700
}
702701
pkcs12.setAlias(alias);
703702
pkcs12.setPrivateKey(privateKey);
@@ -715,20 +714,14 @@ private void updateCassandraConsistencyLevel(EntityStore entityStore, String rea
715714
// Update KPS table consistency level
716715
updateCassandraConsistencyLevel(shorthandKeyFinder, "/[KPSRoot]name=Key Property Stores/[KPSPackage]**/[KPSDataSourceGroup]**/[KPSCassandraDataSource]name=Cassandra Storage",
717716
"readConsistencyLevel", readConsistencyLevel, "writeConsistencyLevel", writeConsistencyLevel);
718-
// Update OAUTH table consistency level
719-
// updateCassandraConsistencyLevel(shorthandKeyFinder, "/[KPSRoot]name=Key Property Stores/[KPSPackage]**/[KPSDataSourceGroup]name=DataSources/[KPSCassandraDataSource]name=Cassandra Storage",
720-
// "readConsistencyLevel", readConsistencyLevel, "writeConsistencyLevel", writeConsistencyLevel);
721-
// Update Quota table consistency level
722717
updateCassandraConsistencyLevel(shorthandKeyFinder, "/[PortalConfiguration]name=Portal Config",
723718
"quotaReadConsistency", readConsistencyLevel, "quotaWriteConsistency", writeConsistencyLevel);
724719
//Update throttling consistency level
725720
updateCassandraConsistencyLevel(shorthandKeyFinder, "/[CassandraSettings]name=Cassandra Settings",
726721
"throttlingReadConsistencyLevel", readConsistencyLevel, "throttlingWriteConsistencyLevel", writeConsistencyLevel);
727-
728722
//Update access token consistency level
729723
updateCassandraConsistencyLevel(shorthandKeyFinder, "/[OAuth2StoresGroup]name=OAuth2 Stores/[AccessTokenStoreGroup]name=Access Token Stores/[AccessTokenPersist]**",
730724
"readConsistencyLevel", readConsistencyLevel, "writeConsistencyLevel", writeConsistencyLevel);
731-
732725
//Update auth code consistency level
733726
updateCassandraConsistencyLevel(shorthandKeyFinder, "/[OAuth2StoresGroup]name=OAuth2 Stores/[AuthzCodeStoreGroup]name=Authorization Code Stores/[AuthzCodePersist]**",
734727
"readConsistencyLevel", readConsistencyLevel, "writeConsistencyLevel", writeConsistencyLevel);
@@ -744,15 +737,9 @@ private void updateCassandraConsistencyLevel(ShorthandKeyFinder shorthandKeyFind
744737
Trace.info("Total number of KPS Store: " + kpsEntities.size() + " in entity : " + shorthandKey);
745738
EntityStore entityStore = shorthandKeyFinder.getEntityStore();
746739
for (Entity entity : kpsEntities) {
747-
// Trace.info(entity.toString());
748-
// Trace.info("Read "+ entity.getStringValue(readConsistencyLevelFieldName));
749-
// Trace.info("Write "+ entity.getStringValue(readConsistencyLevelFieldName));
750740
entity.setStringField(readConsistencyLevelFieldName, readConsistencyLevel);
751741
entity.setStringField(writeConsistencyLevelFieldName, writeConsistencyLevel);
752742
entityStore.updateEntity(entity);
753-
// Trace.info("Update Read "+ entity.getStringValue(readConsistencyLevelFieldName));
754-
// Trace.info("Update Write "+ entity.getStringValue(readConsistencyLevelFieldName));
755-
756743
}
757744
}
758745
}

0 commit comments

Comments
 (0)