Skip to content

Commit 136476e

Browse files
committed
style: remove 9inline method at deployment type at Oracle nosql
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent 43072e9 commit 136476e

File tree

1 file changed

+1
-4
lines changed
  • jnosql-nosql-oracle/src/main/java/org/eclipse/jnosql/databases/oracle/communication

1 file changed

+1
-4
lines changed

jnosql-nosql-oracle/src/main/java/org/eclipse/jnosql/databases/oracle/communication/DeploymentType.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public Optional<AuthorizationProvider> apply(Settings settings) {
7272
String profileName = settings.get(OracleNoSQLConfigurations.PROFILE_NAME, String.class).orElse(null);
7373
String configFile = settings.get(OracleNoSQLConfigurations.CONFIG_FILE, String.class).orElse(null);
7474

75-
if(isFingerPrint(user, password, tenantId, fingerprint, privateKey)) {
75+
if(user != null && password.length > 0 && tenantId != null && fingerprint != null && privateKey != null) {
7676
return Optional.of(new SignatureProvider(tenantId, user, fingerprint, privateKey, password));
7777
}
7878
try {
@@ -88,9 +88,6 @@ public Optional<AuthorizationProvider> apply(Settings settings) {
8888

8989
}
9090

91-
private static boolean isFingerPrint(String user, char[] password, String tenantId, String fingerprint, String privateKey) {
92-
return user != null && password.length > 0 && tenantId != null && fingerprint != null && privateKey != null;
93-
}
9491
},
9592
/**
9693
* Represents a "Cloud" deployment using resource principal for authentication and authorization.

0 commit comments

Comments
 (0)