25 if (command != null && command.getCommandType() != null) {
26 switch (command.getCommandType()) {
27 case AUTHORIZATION_CODE_FLOW:
28 return new AuthorizationCodeFlowOperation(command, injector);
30 return new CheckIdTokenOperation(command, injector);
31 case CHECK_ACCESS_TOKEN:
32 return new CheckAccessTokenOperation(command, injector);
34 return new LicenseStatusOperation(command, injector);
35 case GET_AUTHORIZATION_URL:
36 return new GetAuthorizationUrlOperation(command, injector);
37 case GET_TOKENS_BY_CODE:
38 return new GetTokensByCodeOperation(command, injector);
40 return new GetUserInfoOperation(command, injector);
42 return new ValidateOperation(command, injector);
44 return new ImplicitFlowOperation(command, injector);
45 case GET_ACCESS_TOKEN_BY_REFRESH_TOKEN:
46 return new GetAccessTokenByRefreshTokenOperation(command, injector);
48 return new RegisterSiteOperation(command, injector);
49 case GET_AUTHORIZATION_CODE:
50 return new GetAuthorizationCodeOperation(command, injector);
52 return new GetLogoutUrlOperation(command, injector);
54 return new UpdateSiteOperation(command, injector);
56 return new RsProtectOperation(command, injector);
58 return new RsCheckAccessOperation(command, injector);
60 return new RpGetRptOperation(command, injector);
61 case RP_GET_CLAIMS_GATHERING_URL:
62 return new RpGetGetClaimsGatheringUrlOperation(command, injector);
64 return new SetupClientOperation(command, injector);
65 case GET_CLIENT_TOKEN:
66 return new GetClientTokenOperation(command, injector);
67 case INTROSPECT_ACCESS_TOKEN:
68 return new IntrospectAccessTokenOperation(command, injector);
70 return new IntrospectRptOperation(command, injector);
72 return new RemoveSiteOperation(command, injector);
74 return new GetRpOperation(command, injector);
76 LOG.error(
"Command is not supported. Command: {}", command);
78 LOG.error(
"Command is invalid. Command: {}", command);
static final Logger LOG
Definition: OperationFactory.java:19