We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f387a9b commit 9a0e9edCopy full SHA for 9a0e9ed
oncrpc4j-core/src/main/java/org/dcache/oncrpc4j/rpc/RpcAuthTypeTls.java
@@ -20,6 +20,7 @@
20
package org.dcache.oncrpc4j.rpc;
21
22
import java.io.IOException;
23
+import java.nio.charset.StandardCharsets;
24
import javax.security.auth.Subject;
25
import org.dcache.oncrpc4j.xdr.XdrAble;
26
import org.dcache.oncrpc4j.xdr.XdrDecodingStream;
@@ -32,7 +33,8 @@
32
33
*/
34
public class RpcAuthTypeTls implements RpcAuth, XdrAble {
35
- private final RpcAuthVerifier verifier = new RpcAuthVerifier(RpcAuthType.NONE, new byte[0]);
36
+ private final static byte[] STARTTLS = "STARTTLS".getBytes(StandardCharsets.US_ASCII);
37
+ private final RpcAuthVerifier verifier = new RpcAuthVerifier(RpcAuthType.NONE, STARTTLS);
38
39
@Override
40
public int type() {
0 commit comments