Skip to content

Commit

Permalink
Update IFSFile.java
Browse files Browse the repository at this point in the history
Signed-off-by: nadir amra <[email protected]>
  • Loading branch information
nadiramra authored and jeber-ibm committed Aug 16, 2024
1 parent 29f91e8 commit 8b8c3dd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/java/com/ibm/as400/access/IFSFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -1895,7 +1895,7 @@ public int getASP() throws IOException, AS400SecurityException

if (getSystem().getAuthenticationScheme() == AS400.AUTHENTICATION_SCHEME_PASSWORD
|| getSystem().getAuthenticationScheme()== AS400.AUTHENTICATION_SCHEME_GSS_TOKEN)
impl_.getASP();
return impl_.getASP();

return -1;
}
Expand All @@ -1922,7 +1922,8 @@ else if (fileSystemType == 3)
if (impl_ == null)
chooseImpl();

if (getSystem().getAuthenticationScheme() == AS400.AUTHENTICATION_SCHEME_PASSWORD)
if (getSystem().getAuthenticationScheme() == AS400.AUTHENTICATION_SCHEME_PASSWORD
|| getSystem().getAuthenticationScheme()== AS400.AUTHENTICATION_SCHEME_GSS_TOKEN)
return (retrieveAll) ? impl_.getFileSystemType(this.isDirectory()) : impl_.getFileSystemType();

return "";
Expand All @@ -1948,7 +1949,11 @@ else if (fileSystemType == 3)
if (impl_ == null)
chooseImpl();

return (getSystem().getAuthenticationScheme() == AS400.AUTHENTICATION_SCHEME_PASSWORD) ? impl_.getFileSystemType() : "";
if (getSystem().getAuthenticationScheme() == AS400.AUTHENTICATION_SCHEME_PASSWORD
|| getSystem().getAuthenticationScheme()== AS400.AUTHENTICATION_SCHEME_GSS_TOKEN)
return impl_.getFileSystemType();

return "";
}

/**
Expand Down

0 comments on commit 8b8c3dd

Please sign in to comment.