Skip to content

Commit 35f0317

Browse files
committed
Default to Basic256Sha256 in UserTokenPolicys
1 parent f1e02ce commit 35f0317

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

opc-ua-sdk/sdk-server/src/main/java/org/eclipse/milo/opcua/sdk/server/OpcUaServerConfig.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,16 @@ public interface OpcUaServerConfig {
3838
/** A {@link UserTokenPolicy} for username-based access. */
3939
UserTokenPolicy USER_TOKEN_POLICY_USERNAME =
4040
new UserTokenPolicy(
41-
"username", UserTokenType.UserName, null, null, SecurityPolicy.Basic256.getUri());
41+
"username", UserTokenType.UserName, null, null, SecurityPolicy.Basic256Sha256.getUri());
4242

43+
/** A {@link UserTokenPolicy} for X.509 certificate-based access. */
4344
UserTokenPolicy USER_TOKEN_POLICY_X509 =
4445
new UserTokenPolicy(
45-
"certificate", UserTokenType.Certificate, null, null, SecurityPolicy.Basic256.getUri());
46+
"certificate",
47+
UserTokenType.Certificate,
48+
null,
49+
null,
50+
SecurityPolicy.Basic256Sha256.getUri());
4651

4752
/**
4853
* @return the {@link EndpointConfig}s for this server.

0 commit comments

Comments
 (0)