Skip to content

Commit

Permalink
getUserTokenPolicy: replace deprecated SecurityPolicy
Browse files Browse the repository at this point in the history
  • Loading branch information
tbischoff2 committed Oct 23, 2024
1 parent f56aba1 commit 6c43909
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ private static UserTokenPolicy getUserTokenPolicy(UserTokenType userTokenType) {
case Anonymous:
return UserTokenPolicies.ANONYMOUS;
case UserName:
return UserTokenPolicies.SECURE_USERNAME_PASSWORD;
return UserTokenPolicies.SECURE_USERNAME_PASSWORD_BASIC256SHA256;
case Certificate:
return UserTokenPolicies.SECURE_CERTIFICATE;
return UserTokenPolicies.SECURE_CERTIFICATE_BASIC256SHA256;
default:
throw new IllegalArgumentException(String.format("unsupported UserTokenType '%s'", userTokenType));
}
Expand Down

0 comments on commit 6c43909

Please sign in to comment.