forked from GJWT/javaOIDCMsg
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEndSession.java
More file actions
41 lines (35 loc) · 1.47 KB
/
EndSession.java
File metadata and controls
41 lines (35 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package oiccli.service;
import com.auth0.jwt.creators.Message;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import oiccli.client_info.ClientInfo;
import oiccli.exceptions.MissingParameter;
public class EndSession extends Service {
private static EndSessionRequest endSessionRequest;
private static Message message;
private static ErrorResponse errorResponse;
private static String endpointName = "endSessionEndpoint";
private static boolean isSynchronous = true;
private static String request = "endSession";
public EndSession(String httpLib, KeyJar keyJar, String clientAuthenticationMethod) {
super(httpLib, keyJar, clientAuthenticationMethod);
//self.pre_construct = [self.oic_pre_construct]
}
public List<Map<String, String>> oicPreConstruct(ClientInfo clientInfo, Map<String, String> requestArgs, Map<String, String> args) throws MissingParameter {
requestArgs = UserInfo.setIdToken(clientInfo, requestArgs, args);
return Arrays.asList(requestArgs, new HashMap<String, String>());
}
/*
def factory(req_name, **kwargs):
for name, obj in inspect.getmembers(sys.modules[__name__]):
if inspect.isclass(obj) and issubclass(obj, oiccli.Service):
try:
if obj.__name__ == req_name:
return obj(**kwargs)
except AttributeError:
pass
return service.factory(req_name, **kwargs)
*/
}