Skip to content

Commit f54510e

Browse files
Irfan SharifIrfan Sharif
authored andcommitted
Make appropriate method name change to getGSSTokenfromPassword logic
Signed-off-by: Irfan Sharif <[email protected]>
1 parent 170690d commit f54510e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/ibm/as400/access/AS400.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ private boolean isGSSToken(char[] auth){
425425
}
426426

427427
// Extracts the Kerberos token from the password
428-
private static char[] extractTokenFromPassword(char[] password) {
428+
private static char[] getGSSTokenFromPassword(char[] password) {
429429
int prefixLen = KERBEROS_PREFIX_CHARS.length;
430430
int tokenLen = password.length - prefixLen;
431431

@@ -708,7 +708,7 @@ public AS400(String systemName, String userId, char[] password)
708708
// Create appropriate credential vault based on whether the password is a Kerberos token or a regular password.
709709
boolean kerbToken = isGSSToken(password);
710710
if (kerbToken){
711-
password = extractTokenFromPassword(password);
711+
password = getGSSTokenFromPassword(password);
712712
credVault_ = new GSSTokenVault();
713713

714714
this.setGSSToken(Base64.getDecoder().decode((new String(password))));

0 commit comments

Comments
 (0)