@@ -32,7 +32,7 @@ public SecureStorageStatus setCredential(String host, String user, String type,
32
32
return SecureStorageStatus .SUCCESS ;
33
33
}
34
34
35
- String target = SecureStorageManager .convertTarget (host , user , type );
35
+ String target = SecureStorageManager .buildCredentialsKey (host , user , type );
36
36
byte [] targetBytes = target .getBytes (StandardCharsets .UTF_8 );
37
37
byte [] userBytes = user .toUpperCase ().getBytes (StandardCharsets .UTF_8 );
38
38
byte [] credBytes = cred .getBytes (StandardCharsets .UTF_8 );
@@ -92,7 +92,7 @@ public SecureStorageStatus setCredential(String host, String user, String type,
92
92
}
93
93
94
94
public String getCredential (String host , String user , String type ) {
95
- String target = SecureStorageManager .convertTarget (host , user , type );
95
+ String target = SecureStorageManager .buildCredentialsKey (host , user , type );
96
96
byte [] targetBytes = target .getBytes (StandardCharsets .UTF_8 );
97
97
byte [] userBytes = user .toUpperCase ().getBytes (StandardCharsets .UTF_8 );
98
98
@@ -141,7 +141,7 @@ public String getCredential(String host, String user, String type) {
141
141
}
142
142
143
143
public SecureStorageStatus deleteCredential (String host , String user , String type ) {
144
- String target = SecureStorageManager .convertTarget (host , user , type );
144
+ String target = SecureStorageManager .buildCredentialsKey (host , user , type );
145
145
byte [] targetBytes = target .getBytes (StandardCharsets .UTF_8 );
146
146
byte [] userBytes = user .toUpperCase ().getBytes (StandardCharsets .UTF_8 );
147
147
0 commit comments