gluu
公開メンバ関数 | 関数 | 非公開メンバ関数 | 非公開変数類 | 静的非公開変数類 | 全メンバ一覧
org.gluu.credmanager.core.OxdService クラス
org.gluu.credmanager.core.OxdService 連携図
Collaboration graph

公開メンバ関数

void inited ()
 
boolean initialize ()
 
void setSettings (OxdSettings config) throws Exception
 
void setSettings (OxdSettings config, boolean triggerRegistration) throws Exception
 
OxdClientSettings doRegister () throws Exception
 
void removeSite (String oxdId)
 
String getAuthzUrl (String acrValues) throws Exception
 
Pair< String, String > getTokens (String code, String state) throws Exception
 
Map< String, List< String > > getUserClaims (String accessToken) throws Exception
 
String getLogoutUrl (String idTokenHint) throws Exception
 
boolean updateSite (String postLogoutUri, Long expiration) throws Exception
 
boolean extendSiteLifeTime ()
 

関数

private< T > T restResponse (IParams params, String path, String token, Class< T > responseClass) throws Exception
 

非公開メンバ関数

String getAuthzUrl (List< String > acrValues, String prompt) throws Exception
 
boolean doUpdate (UpdateSiteParams cmdParams) throws Exception
 
String getPAT () throws Exception
 
void destroy ()
 

非公開変数類

Logger logger
 
MainSettings settings
 
LdapService ldapService
 
int consecutive = 0
 
OxdSettings config
 
ResteasyClient client
 
ObjectMapper mapper
 

静的非公開変数類

static final String LOGOUT_PAGE_URL = "bye.zul"
 

詳解

An app. scoped bean that encapsulates interactions with an oxd-server. Contains methods depicting the steps of the authorization code flow of OpenId Connect spec

著者
jgomer

関数詳解

◆ destroy()

void org.gluu.credmanager.core.OxdService.destroy ( )
inlineprivate
440  {
441  if (client != null) {
442  client.close();
443  }
444  }
ResteasyClient client
Definition: OxdService.java:71

◆ doRegister()

OxdClientSettings org.gluu.credmanager.core.OxdService.doRegister ( ) throws Exception
inline
154  {
155 
156  OxdClientSettings computedSettings;
157  String clientName;
158  logger.info("Setting oxd configs (host: {}, port: {}, https extension: {}, post logout: {})",
160 
161  try {
162  if (config.isUseHttpsExtension()) {
163  clientName = "cred-manager-extension-" + consecutive;
164 
165  SetupClientParams cmdParams = new SetupClientParams();
166  cmdParams.setOpHost(config.getOpHost());
167  cmdParams.setAuthorizationRedirectUri(config.getRedirectUri());
168  cmdParams.setPostLogoutRedirectUri(config.getPostLogoutUri());
169  cmdParams.setAcrValues(config.getAcrValues());
170  cmdParams.setClientName(clientName);
171 
172  //TODO: bug 3.1.1?
173  List<String> scopes = new ArrayList<>(Arrays.asList(UserService.OPEN_ID_SCOPES));
174  scopes.add("uma_protection");
175  cmdParams.setScope(scopes);
176  //END
177 
178  cmdParams.setResponseTypes(Collections.singletonList("code"));
179  cmdParams.setTrustedClient(true);
180  //cmdParams.setGrantType(Collections.singletonList("authorization_code")); //this is the default grant
181 
182  SetupClientResponse setup = restResponse(cmdParams, "setup-client", null, SetupClientResponse.class);
183  computedSettings = new OxdClientSettings(clientName, setup.getOxdId(), setup.getClientId(), setup.getClientSecret());
184  } else {
185  clientName = "cred-manager-" + consecutive;
186 
187  RegisterSiteParams cmdParams = new RegisterSiteParams();
188  cmdParams.setOpHost(config.getOpHost());
189  cmdParams.setAuthorizationRedirectUri(config.getRedirectUri());
190  cmdParams.setPostLogoutRedirectUri(config.getPostLogoutUri());
191  cmdParams.setAcrValues(config.getAcrValues());
192  cmdParams.setClientName(clientName);
193 
194  //These scopes should be set to default=true in LDAP (or using oxTrust). Otherwise the following will have no effect
195  cmdParams.setScope(Arrays.asList(UserService.OPEN_ID_SCOPES));
196 
197  cmdParams.setResponseTypes(Collections.singletonList("code")); //Use "token","id_token" for implicit flow
198  cmdParams.setTrustedClient(true);
199  //cmdParams.setGrantType(Collections.singletonList("authorization_code")); //this is the default grant
200 
201  CommandClient commandClient = null;
202  try {
203  commandClient = new CommandClient(config.getHost(), config.getPort());
204  Command command = new Command(CommandType.REGISTER_SITE).setParamsObject(cmdParams);
205  RegisterSiteResponse site = commandClient.send(command).dataAsResponse(RegisterSiteResponse.class);
206  computedSettings = new OxdClientSettings(clientName, site.getOxdId(), null, null);
207  } finally {
208  CommandClient.closeQuietly(commandClient);
209  }
210  }
211  consecutive++;
212  logger.info("oxd client registered successfully, oxd-id={}", computedSettings.getOxdId());
213  } catch (Exception e) {
214  consecutive++;
215  String msg = "Setting oxd-server configs failed";
216  logger.error(msg, e);
217  throw new Exception(msg, e);
218  }
219  return computedSettings;
220 
221  }
String getClientSecret()
Definition: SetupClientResponse.java:75
Definition: SetupClientResponse.java:10
String getOxdId()
Definition: SetupClientResponse.java:51
Logger logger
Definition: OxdService.java:61
OxdSettings config
Definition: OxdService.java:70
String getPostLogoutUri()
Definition: OxdSettings.java:56
String getOpHost()
Definition: OxdSettings.java:60
List< String > getAcrValues()
Definition: OxdSettings.java:64
int getPort()
Definition: OxdSettings.java:44
boolean isUseHttpsExtension()
Definition: OxdSettings.java:52
String getClientId()
Definition: SetupClientResponse.java:67
String getOxdId()
Definition: RegisterSiteResponse.java:20
Definition: RegisterSiteResponse.java:10
int consecutive
Definition: OxdService.java:69
String getHost()
Definition: OxdSettings.java:40
private< T > T restResponse(IParams params, String path, String token, Class< T > responseClass)
Definition: OxdService.java:423
String getRedirectUri()
Definition: OxdSettings.java:48

◆ doUpdate()

boolean org.gluu.credmanager.core.OxdService.doUpdate ( UpdateSiteParams  cmdParams) throws Exception
inlineprivate
388  {
389 
390  UpdateSiteResponse resp = null;
391  if (config.isUseHttpsExtension()) {
392  resp = restResponse(cmdParams, "update-site", getPAT(), UpdateSiteResponse.class);
393  } else {
394  CommandClient commandClient = null;
395  try {
396  commandClient = new CommandClient(config.getHost(), config.getPort());
397  Command command = new Command(CommandType.UPDATE_SITE).setParamsObject(cmdParams);
398  resp = commandClient.send(command).dataAsResponse(UpdateSiteResponse.class);
399  } finally {
400  CommandClient.closeQuietly(commandClient);
401  }
402  }
403  return resp != null;
404 
405  }
OxdSettings config
Definition: OxdService.java:70
int getPort()
Definition: OxdSettings.java:44
boolean isUseHttpsExtension()
Definition: OxdSettings.java:52
String getHost()
Definition: OxdSettings.java:40
private< T > T restResponse(IParams params, String path, String token, Class< T > responseClass)
Definition: OxdService.java:423
String getPAT()
Definition: OxdService.java:407
Definition: UpdateSiteResponse.java:10

◆ extendSiteLifeTime()

boolean org.gluu.credmanager.core.OxdService.extendSiteLifeTime ( )
inline
369  {
370  /*
371  //Extending the life time cannot take place because scopes are changed by those defaulted in Gluu Server
372  //Unfortunately, the custom script that turns on the scopes is only run upon registration (not updates)
373  //On the other hand, oxd site registration does not allow to set the expiration. To workaround it, the
374  //associated client registration cust script is in charge of extending the lifetime
375  GregorianCalendar cal=new GregorianCalendar();
376  cal.add(Calendar.YEAR, 1);
377 
378  UpdateSiteParams cmdParams = new UpdateSiteParams();
379  cmdParams.setOxdId(config.getClient().getOxdId());
380  cmdParams.setClientSecretExpiresAt(new Date(cal.getTimeInMillis()));
381 
382  return doUpdate(cmdParams);
383  */
384  return true;
385 
386  }

◆ getAuthzUrl() [1/2]

String org.gluu.credmanager.core.OxdService.getAuthzUrl ( List< String >  acrValues,
String  prompt 
) throws Exception
inlineprivate

Returns a string with an autorization URL to redirect an application (see OpenId connect "code" flow)

引数
acrValuesList of acr_values. See OpenId Connect core 1.0 (section 3.1.2.1)
promptSee OpenId Connect core 1.0 (section 3.1.2.1)
戻り値
String consisting of an authentication request with desired parameters
例外
Exception
255  {
256 
257  GetAuthorizationUrlParams cmdParams = new GetAuthorizationUrlParams();
258  cmdParams.setOxdId(config.getClient().getOxdId());
259  cmdParams.setAcrValues(acrValues);
260  cmdParams.setPrompt(prompt);
261 
263  if (config.isUseHttpsExtension()) {
264  resp = restResponse(cmdParams, "get-authorization-url", getPAT(), GetAuthorizationUrlResponse.class);
265  } else {
266  CommandClient commandClient = null;
267  try {
268  commandClient = new CommandClient(config.getHost(), config.getPort());
269  Command command = new Command(CommandType.GET_AUTHORIZATION_URL).setParamsObject(cmdParams);
270  resp = commandClient.send(command).dataAsResponse(GetAuthorizationUrlResponse.class);
271  } finally {
272  CommandClient.closeQuietly(commandClient);
273  }
274  }
275  return resp.getAuthorizationUrl();
276 
277  }
String getAuthorizationUrl()
Definition: GetAuthorizationUrlResponse.java:22
String getOxdId()
Definition: OxdClientSettings.java:32
OxdSettings config
Definition: OxdService.java:70
int getPort()
Definition: OxdSettings.java:44
boolean isUseHttpsExtension()
Definition: OxdSettings.java:52
OxdClientSettings getClient()
Definition: OxdSettings.java:69
String getHost()
Definition: OxdSettings.java:40
private< T > T restResponse(IParams params, String path, String token, Class< T > responseClass)
Definition: OxdService.java:423
String getPAT()
Definition: OxdService.java:407
Definition: GetAuthorizationUrlResponse.java:10

◆ getAuthzUrl() [2/2]

String org.gluu.credmanager.core.OxdService.getAuthzUrl ( String  acrValues) throws Exception
inline
279  {
280  return getAuthzUrl(Collections.singletonList(acrValues), null);
281  }
String getAuthzUrl(List< String > acrValues, String prompt)
Definition: OxdService.java:255

◆ getLogoutUrl()

String org.gluu.credmanager.core.OxdService.getLogoutUrl ( String  idTokenHint) throws Exception
inline
331  {
332 
333  GetLogoutUrlParams cmdParams = new GetLogoutUrlParams();
334  cmdParams.setOxdId(config.getClient().getOxdId());
335  cmdParams.setPostLogoutRedirectUri(config.getPostLogoutUri());
336  cmdParams.setIdTokenHint(idTokenHint);
337 
338  LogoutResponse resp;
339  if (config.isUseHttpsExtension()) {
340  resp = restResponse(cmdParams, "get-logout-uri", getPAT(), LogoutResponse.class);
341  } else {
342  CommandClient commandClient = null;
343  try {
344  commandClient = new CommandClient(config.getHost(), config.getPort());
345  Command command = new Command(CommandType.GET_LOGOUT_URI).setParamsObject(cmdParams);
346  resp = commandClient.send(command).dataAsResponse(LogoutResponse.class);
347  } finally {
348  CommandClient.closeQuietly(commandClient);
349  }
350  }
351  return resp.getUri();
352 
353  }
String getOxdId()
Definition: OxdClientSettings.java:32
OxdSettings config
Definition: OxdService.java:70
String getPostLogoutUri()
Definition: OxdSettings.java:56
int getPort()
Definition: OxdSettings.java:44
boolean isUseHttpsExtension()
Definition: OxdSettings.java:52
OxdClientSettings getClient()
Definition: OxdSettings.java:69
String getUri()
Definition: LogoutResponse.java:22
String getHost()
Definition: OxdSettings.java:40
private< T > T restResponse(IParams params, String path, String token, Class< T > responseClass)
Definition: OxdService.java:423
String getPAT()
Definition: OxdService.java:407
Definition: LogoutResponse.java:10

◆ getPAT()

String org.gluu.credmanager.core.OxdService.getPAT ( ) throws Exception
inlineprivate
407  {
408 
409  GetClientTokenParams cmdParams = new GetClientTokenParams();
410  cmdParams.setOpHost(config.getOpHost());
411  cmdParams.setClientId(config.getClient().getClientId());
412  cmdParams.setClientSecret(config.getClient().getClientSecret());
413  cmdParams.setScope(Arrays.asList(UserService.OPEN_ID_SCOPES));
414 
415  GetClientTokenResponse resp = restResponse(cmdParams, "get-client-token", null, GetClientTokenResponse.class);
416  String token = resp.getAccessToken();
417  logger.trace("getPAT. token={}", token);
418 
419  return token;
420 
421  }
Logger logger
Definition: OxdService.java:61
OxdSettings config
Definition: OxdService.java:70
String getOpHost()
Definition: OxdSettings.java:60
OxdClientSettings getClient()
Definition: OxdSettings.java:69
String getClientSecret()
Definition: OxdClientSettings.java:42
String getAccessToken()
Definition: GetClientTokenResponse.java:21
Definition: GetClientTokenResponse.java:10
private< T > T restResponse(IParams params, String path, String token, Class< T > responseClass)
Definition: OxdService.java:423
String getClientId()
Definition: OxdClientSettings.java:37

◆ getTokens()

Pair<String, String> org.gluu.credmanager.core.OxdService.getTokens ( String  code,
String  state 
) throws Exception
inline
283  {
284 
285  GetTokensByCodeParams cmdParams = new GetTokensByCodeParams();
286  cmdParams.setOxdId(config.getClient().getOxdId());
287  cmdParams.setCode(code);
288  cmdParams.setState(state);
289 
291  if (config.isUseHttpsExtension()) {
292  resp = restResponse(cmdParams, "get-tokens-by-code", getPAT(), GetTokensByCodeResponse.class);
293  } else {
294  CommandClient commandClient = null;
295  try {
296  commandClient = new CommandClient(config.getHost(), config.getPort());
297  Command command = new Command(CommandType.GET_TOKENS_BY_CODE).setParamsObject(cmdParams);
298  resp = commandClient.send(command).dataAsResponse(GetTokensByCodeResponse.class);
299  } finally {
300  CommandClient.closeQuietly(commandClient);
301  }
302  }
303  //validate accessToken with at_hash inside idToken: resp.getIdToken();
304  return new Pair<>(resp.getAccessToken(), resp.getIdToken());
305 
306  }
String getIdToken()
Definition: GetTokensByCodeResponse.java:53
String getOxdId()
Definition: OxdClientSettings.java:32
OxdSettings config
Definition: OxdService.java:70
int getPort()
Definition: OxdSettings.java:44
boolean isUseHttpsExtension()
Definition: OxdSettings.java:52
OxdClientSettings getClient()
Definition: OxdSettings.java:69
String getAccessToken()
Definition: GetTokensByCodeResponse.java:37
String getHost()
Definition: OxdSettings.java:40
private< T > T restResponse(IParams params, String path, String token, Class< T > responseClass)
Definition: OxdService.java:423
String getPAT()
Definition: OxdService.java:407
Definition: GetTokensByCodeResponse.java:13

◆ getUserClaims()

Map<String, List<String> > org.gluu.credmanager.core.OxdService.getUserClaims ( String  accessToken) throws Exception
inline
308  {
309 
310  GetUserInfoParams cmdParams = new GetUserInfoParams();
311  cmdParams.setOxdId(config.getClient().getOxdId());
312  cmdParams.setAccessToken(accessToken);
313 
314  GetUserInfoResponse resp;
315  if (config.isUseHttpsExtension()) {
316  resp = restResponse(cmdParams, "get-user-info", getPAT(), GetUserInfoResponse.class);
317  } else {
318  CommandClient commandClient = null;
319  try {
320  commandClient = new CommandClient(config.getHost(), config.getPort());
321  Command command = new Command(CommandType.GET_USER_INFO).setParamsObject(cmdParams);
322  resp = commandClient.send(command).dataAsResponse(GetUserInfoResponse.class);
323  } finally {
324  CommandClient.closeQuietly(commandClient);
325  }
326  }
327  return resp.getClaims();
328 
329  }
String getOxdId()
Definition: OxdClientSettings.java:32
Map< String, List< String > > getClaims()
Definition: GetUserInfoResponse.java:30
OxdSettings config
Definition: OxdService.java:70
int getPort()
Definition: OxdSettings.java:44
boolean isUseHttpsExtension()
Definition: OxdSettings.java:52
OxdClientSettings getClient()
Definition: OxdSettings.java:69
Definition: GetUserInfoResponse.java:14
String getHost()
Definition: OxdSettings.java:40
private< T > T restResponse(IParams params, String path, String token, Class< T > responseClass)
Definition: OxdService.java:423
String getPAT()
Definition: OxdService.java:407

◆ inited()

void org.gluu.credmanager.core.OxdService.inited ( )
inline
75  {
76  mapper = new ObjectMapper();
77  client = new ResteasyClientBuilder().build();
78  }
ResteasyClient client
Definition: OxdService.java:71
ObjectMapper mapper
Definition: OxdService.java:72

◆ initialize()

boolean org.gluu.credmanager.core.OxdService.initialize ( )
inline
80  {
81 
82  boolean success = false;
83 
84  OxdSettings oxdConfig = settings.getOxdSettings();
85  if (oxdConfig == null) {
86  logger.error("No oxd configuration was provided");
87  } else {
88  String issuerUrl = ldapService.getIssuerUrl();
89  String oxdHost = oxdConfig.getHost();
90  String oxdRedirectUri = oxdConfig.getRedirectUri();
91 
92  if (oxdConfig.getPort() <= 0 || Utils.isEmpty(oxdHost) || Utils.isEmpty(oxdRedirectUri)) {
93  logger.error("Host, port, and URI for redirect must be present in configuration file");
94  } else {
95 
96  String tmp = oxdConfig.getPostLogoutUri();
97  if (Utils.isEmpty(tmp)) { //Use default post logout if not in config settings
98  tmp = oxdRedirectUri; //Remove trailing slash if any in redirect URI
99  tmp = tmp.endsWith("/") ? tmp.substring(0, tmp.length() - 1) : tmp;
100  oxdConfig.setPostLogoutUri(tmp + "/" + LOGOUT_PAGE_URL);
101  }
102  //TODO: bug 3.1.1? https://github.com/GluuFederation/oxd/issues/124
103  oxdConfig.setOpHost(issuerUrl);
104  //END
105  oxdConfig.setAcrValues(Collections.singletonList(DEFAULT_ACR));
106 
107  try {
109  Optional<String> oxdIdOpt = Optional.ofNullable(oxdConfig.getClient()).map(OxdClientSettings::getOxdId);
110  if (oxdIdOpt.isPresent()) {
111  setSettings(oxdConfig);
112 
113  if (!extendSiteLifeTime()) {
114  logger.warn("An error occured while extending the lifetime of the associated oxd client.");
115  logger.info("Attempting a new site registration");
116  setSettings(oxdConfig, true);
117  }
118  } else {
119  //trigger registration
120  setSettings(oxdConfig, true);
121 
122  if (!extendSiteLifeTime()) {
123  logger.warn("An error occured while extending the lifetime of the associated oxd client.");
124  }
125  }
126  settings.save();
127  success = true;
128 
129  } else {
130  logger.error("Dynamic registration of OpenId Connect clients must be enabled in the server. "
131  + "Check expiration time is greater than zero");
132  }
133  } catch (Exception e) {
134  logger.warn("Users will not be able to login until a new sucessful attempt to refresh oxd-associated "
135  + "clients takes place. Restart the app to trigger the update immediately");
136  }
137  }
138  }
139  return success;
140 
141  }
void setSettings(OxdSettings config)
Definition: OxdService.java:143
String getOxdId()
Definition: OxdClientSettings.java:32
String getIssuerUrl()
Definition: LdapService.java:81
boolean extendSiteLifeTime()
Definition: OxdService.java:369
void save()
Definition: MainSettings.java:85
Logger logger
Definition: OxdService.java:61
LdapService ldapService
Definition: OxdService.java:67
MainSettings settings
Definition: OxdService.java:64
OxdSettings getOxdSettings()
Definition: MainSettings.java:134
static final String LOGOUT_PAGE_URL
Definition: OxdService.java:58
int getDynamicClientExpirationTime()
Definition: LdapService.java:85

◆ removeSite()

void org.gluu.credmanager.core.OxdService.removeSite ( String  oxdId)
inline
223  {
224 
225  try {
226  RemoveSiteParams cmdParams = new RemoveSiteParams(oxdId);
227  RemoveSiteResponse resp;
228 
229  if (config.isUseHttpsExtension()) {
230  resp = restResponse(cmdParams, "remove-site", getPAT(), RemoveSiteResponse.class);
231  } else {
232  CommandClient commandClient = null;
233  try {
234  commandClient = new CommandClient(config.getHost(), config.getPort());
235  Command command = new Command(CommandType.REMOVE_SITE).setParamsObject(cmdParams);
236  resp = commandClient.send(command).dataAsResponse(RemoveSiteResponse.class);
237  } finally {
238  CommandClient.closeQuietly(commandClient);
239  }
240  }
241  logger.info("Site removed {}", resp.getOxdId());
242  } catch (Exception e) {
243  logger.debug(e.getMessage(), e);
244  }
245 
246  }
Definition: RemoveSiteResponse.java:8
Logger logger
Definition: OxdService.java:61
OxdSettings config
Definition: OxdService.java:70
int getPort()
Definition: OxdSettings.java:44
boolean isUseHttpsExtension()
Definition: OxdSettings.java:52
String getOxdId()
Definition: RemoveSiteResponse.java:20
String getHost()
Definition: OxdSettings.java:40
private< T > T restResponse(IParams params, String path, String token, Class< T > responseClass)
Definition: OxdService.java:423
String getPAT()
Definition: OxdService.java:407

◆ restResponse()

private<T> T org.gluu.credmanager.core.OxdService.restResponse ( IParams  params,
String  path,
String  token,
Class< T >  responseClass 
) throws Exception
inlinepackage
423  {
424 
425  String payload = mapper.writeValueAsString(params);
426  logger.trace("Sending /{} request to oxd-https-extension with payload \n{}", path, payload);
427 
428  String authz = StringUtils.isEmpty(token) ? null : "Bearer " + token;
429  ResteasyWebTarget target = client.target(String.format("https://%s:%s/%s", config.getHost(), config.getPort(), path));
430  Response response = target.request().header("Authorization", authz).post(Entity.json(payload));
431 
432  CommandResponse cmdResponse = response.readEntity(CommandResponse.class);
433  logger.trace("Response received was \n{}", cmdResponse == null ? null : cmdResponse.getData().toString());
434 
435  return cmdResponse.getStatus().equals(ResponseStatus.OK) ? mapper.convertValue(cmdResponse.getData(), responseClass) : null;
436 
437  }
Logger logger
Definition: OxdService.java:61
OxdSettings config
Definition: OxdService.java:70
int getPort()
Definition: OxdSettings.java:44
ResteasyClient client
Definition: OxdService.java:71
ObjectMapper mapper
Definition: OxdService.java:72
String getHost()
Definition: OxdSettings.java:40

◆ setSettings() [1/2]

void org.gluu.credmanager.core.OxdService.setSettings ( OxdSettings  config) throws Exception
inline
143  {
144  setSettings(config, false);
145  }
void setSettings(OxdSettings config)
Definition: OxdService.java:143
OxdSettings config
Definition: OxdService.java:70

◆ setSettings() [2/2]

void org.gluu.credmanager.core.OxdService.setSettings ( OxdSettings  config,
boolean  triggerRegistration 
) throws Exception
inline
147  {
148  this.config = config;
149  if (triggerRegistration) {
151  }
152  }
void setClient(OxdClientSettings client)
Definition: OxdSettings.java:101
OxdClientSettings doRegister()
Definition: OxdService.java:154
OxdSettings config
Definition: OxdService.java:70

◆ updateSite()

boolean org.gluu.credmanager.core.OxdService.updateSite ( String  postLogoutUri,
Long  expiration 
) throws Exception
inline
355  {
356 
357  UpdateSiteParams cmdParams = new UpdateSiteParams();
358  cmdParams.setOxdId(config.getClient().getOxdId());
359  if (postLogoutUri != null) {
360  cmdParams.setPostLogoutRedirectUri(postLogoutUri);
361  }
362  if (expiration != null) {
363  cmdParams.setClientSecretExpiresAt(new Date(expiration));
364  }
365  return doUpdate(cmdParams);
366 
367  }
String getOxdId()
Definition: OxdClientSettings.java:32
OxdSettings config
Definition: OxdService.java:70
OxdClientSettings getClient()
Definition: OxdSettings.java:69
boolean doUpdate(UpdateSiteParams cmdParams)
Definition: OxdService.java:388

メンバ詳解

◆ client

ResteasyClient org.gluu.credmanager.core.OxdService.client
private

◆ config

OxdSettings org.gluu.credmanager.core.OxdService.config
private

◆ consecutive

int org.gluu.credmanager.core.OxdService.consecutive = 0
private

◆ ldapService

LdapService org.gluu.credmanager.core.OxdService.ldapService
private

◆ logger

Logger org.gluu.credmanager.core.OxdService.logger
private

◆ LOGOUT_PAGE_URL

final String org.gluu.credmanager.core.OxdService.LOGOUT_PAGE_URL = "bye.zul"
staticprivate

◆ mapper

ObjectMapper org.gluu.credmanager.core.OxdService.mapper
private

◆ settings

MainSettings org.gluu.credmanager.core.OxdService.settings
private

このクラス詳解は次のファイルから抽出されました: