File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed
marklogic-client-api/src/main/java/com/marklogic/client/impl Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11
11
import javax .xml .parsers .ParserConfigurationException ;
12
12
13
13
import com .marklogic .client .io .Format ;
14
- import okhttp3 .MediaType ;
15
14
import org .w3c .dom .Document ;
16
15
import org .w3c .dom .NodeList ;
17
16
import org .xml .sax .SAXException ;
Original file line number Diff line number Diff line change 1
1
/*
2
2
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
3
3
*/
4
- package com .marklogic .client .impl ;
4
+ package com .marklogic .client .impl . okhttp ;
5
5
6
6
import java .io .IOException ;
7
7
import java .util .Map ;
20
20
import javax .security .auth .login .Configuration ;
21
21
import javax .security .auth .kerberos .KerberosTicket ;
22
22
23
+ import com .marklogic .client .impl .SSLUtil ;
23
24
import org .ietf .jgss .GSSContext ;
24
25
import org .ietf .jgss .GSSCredential ;
25
26
import org .ietf .jgss .GSSException ;
Original file line number Diff line number Diff line change 2
2
* Copyright (c) 2010-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
3
3
*/
4
4
5
- package com .marklogic .client .impl ;
5
+ package com .marklogic .client .impl . okhttp ;
6
6
7
7
import com .marklogic .client .DatabaseClientFactory .SAMLAuthContext .AuthorizerCallback ;
8
8
import com .marklogic .client .DatabaseClientFactory .SAMLAuthContext .ExpiringSAMLAuth ;
9
9
import com .marklogic .client .DatabaseClientFactory .SAMLAuthContext .RenewerCallback ;
10
+ import com .marklogic .client .impl .RESTServices ;
10
11
import okhttp3 .Interceptor ;
11
12
import okhttp3 .Request ;
12
13
import okhttp3 .Response ;
@@ -55,7 +56,7 @@ public Response intercept(Chain chain) throws IOException {
55
56
Request authenticatedRequest = chain .request ().newBuilder ()
56
57
.header (RESTServices .HEADER_AUTHORIZATION , buildSamlHeader ())
57
58
.build ();
58
-
59
+
59
60
return chain .proceed (authenticatedRequest );
60
61
}
61
62
Original file line number Diff line number Diff line change 5
5
6
6
import com .marklogic .client .DatabaseClientFactory ;
7
7
import com .marklogic .client .extra .okhttpclient .OkHttpClientConfigurator ;
8
- import com .marklogic .client .impl .HTTPKerberosAuthInterceptor ;
9
- import com .marklogic .client .impl .HTTPSamlAuthInterceptor ;
10
- import com .marklogic .client .impl .OkHttpServices ;
11
8
import com .marklogic .client .impl .SSLUtil ;
12
9
import okhttp3 .*;
13
10
23
20
import java .util .ArrayList ;
24
21
import java .util .List ;
25
22
import java .util .Map ;
26
- import java .util .Objects ;
27
23
import java .util .concurrent .TimeUnit ;
28
24
29
25
/**
You can’t perform that action at this time.
0 commit comments