summaryrefslogtreecommitdiffstats
path: root/jrt/tests
diff options
context:
space:
mode:
Diffstat (limited to 'jrt/tests')
-rw-r--r--jrt/tests/com/yahoo/jrt/CryptoUtils.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/jrt/tests/com/yahoo/jrt/CryptoUtils.java b/jrt/tests/com/yahoo/jrt/CryptoUtils.java
index 95ea581cb90..06f7fbb1704 100644
--- a/jrt/tests/com/yahoo/jrt/CryptoUtils.java
+++ b/jrt/tests/com/yahoo/jrt/CryptoUtils.java
@@ -9,7 +9,6 @@ import com.yahoo.security.tls.HostnameVerification;
import com.yahoo.security.tls.PeerAuthentication;
import com.yahoo.security.tls.TlsContext;
import com.yahoo.security.tls.policy.AuthorizedPeers;
-import com.yahoo.security.tls.policy.HostGlobPattern;
import com.yahoo.security.tls.policy.PeerPolicy;
import com.yahoo.security.tls.policy.RequiredPeerCredential;
import com.yahoo.security.tls.policy.RequiredPeerCredential.Field;
@@ -46,8 +45,7 @@ class CryptoUtils {
singleton(
new Role("localhost-role")),
singletonList(
- new RequiredPeerCredential(
- Field.CN, new HostGlobPattern("localhost"))))));
+ RequiredPeerCredential.of(Field.CN, "localhost")))));
static TlsContext createTestTlsContext() {
return new DefaultTlsContext(