keycloak-service
公開メンバ関数 | 静的公開メンバ関数 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper クラス
org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper 連携図
Collaboration graph

公開メンバ関数

Algorithm getUserInfoSignedResponseAlg ()
 
void setUserInfoSignedResponseAlg (Algorithm alg)
 
boolean isUserInfoSignatureRequired ()
 
Algorithm getRequestObjectSignatureAlg ()
 
void setRequestObjectSignatureAlg (Algorithm alg)
 
String getRequestObjectRequired ()
 
void setRequestObjectRequired (String requestObjectRequired)
 
boolean isUseJwksUrl ()
 
void setUseJwksUrl (boolean useJwksUrl)
 
String getJwksUrl ()
 
void setJwksUrl (String jwksUrl)
 
boolean isExcludeSessionStateFromAuthResponse ()
 
void setExcludeSessionStateFromAuthResponse (boolean excludeSessionStateFromAuthResponse)
 
boolean isUseMtlsHokToken ()
 
void setUseMtlsHoKToken (boolean useUtlsHokToken)
 
String getIdTokenSignedResponseAlg ()
 
void setIdTokenSignedResponseAlg (String algName)
 

静的公開メンバ関数

static OIDCAdvancedConfigWrapper fromClientModel (ClientModel client)
 
static OIDCAdvancedConfigWrapper fromClientRepresentation (ClientRepresentation clientRep)
 

非公開メンバ関数

 OIDCAdvancedConfigWrapper (ClientModel client, ClientRepresentation clientRep)
 
String getAttribute (String attrKey)
 
void setAttribute (String attrKey, String attrValue)
 

非公開変数類

final ClientModel clientModel
 
final ClientRepresentation clientRep
 

詳解

著者
Marek Posolda

構築子と解体子

◆ OIDCAdvancedConfigWrapper()

org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.OIDCAdvancedConfigWrapper ( ClientModel  client,
ClientRepresentation  clientRep 
)
inlineprivate
34  {
35  this.clientModel = client;
36  this.clientRep = clientRep;
37  }
final ClientRepresentation clientRep
Definition: OIDCAdvancedConfigWrapper.java:32
final ClientModel clientModel
Definition: OIDCAdvancedConfigWrapper.java:31

関数詳解

◆ fromClientModel()

static OIDCAdvancedConfigWrapper org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.fromClientModel ( ClientModel  client)
inlinestatic
40  {
41  return new OIDCAdvancedConfigWrapper(client, null);
42  }
OIDCAdvancedConfigWrapper(ClientModel client, ClientRepresentation clientRep)
Definition: OIDCAdvancedConfigWrapper.java:34

◆ fromClientRepresentation()

static OIDCAdvancedConfigWrapper org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.fromClientRepresentation ( ClientRepresentation  clientRep)
inlinestatic
44  {
45  return new OIDCAdvancedConfigWrapper(null, clientRep);
46  }
final ClientRepresentation clientRep
Definition: OIDCAdvancedConfigWrapper.java:32
OIDCAdvancedConfigWrapper(ClientModel client, ClientRepresentation clientRep)
Definition: OIDCAdvancedConfigWrapper.java:34

◆ getAttribute()

String org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.getAttribute ( String  attrKey)
inlineprivate
128  {
129  if (clientModel != null) {
130  return clientModel.getAttribute(attrKey);
131  } else {
132  return clientRep.getAttributes()==null ? null : clientRep.getAttributes().get(attrKey);
133  }
134  }
final ClientRepresentation clientRep
Definition: OIDCAdvancedConfigWrapper.java:32
final ClientModel clientModel
Definition: OIDCAdvancedConfigWrapper.java:31

◆ getIdTokenSignedResponseAlg()

String org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.getIdTokenSignedResponseAlg ( )
inline
121  {
122  return getAttribute(OIDCConfigAttributes.ID_TOKEN_SIGNED_RESPONSE_ALG);
123  }
String getAttribute(String attrKey)
Definition: OIDCAdvancedConfigWrapper.java:128

◆ getJwksUrl()

String org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.getJwksUrl ( )
inline
91  {
92  return getAttribute(OIDCConfigAttributes.JWKS_URL);
93  }
String getAttribute(String attrKey)
Definition: OIDCAdvancedConfigWrapper.java:128

◆ getRequestObjectRequired()

String org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.getRequestObjectRequired ( )
inline
73  {
74  return getAttribute(OIDCConfigAttributes.REQUEST_OBJECT_REQUIRED);
75  }
String getAttribute(String attrKey)
Definition: OIDCAdvancedConfigWrapper.java:128

◆ getRequestObjectSignatureAlg()

Algorithm org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.getRequestObjectSignatureAlg ( )
inline
63  {
64  String alg = getAttribute(OIDCConfigAttributes.REQUEST_OBJECT_SIGNATURE_ALG);
65  return alg==null ? null : Enum.valueOf(Algorithm.class, alg);
66  }
String getAttribute(String attrKey)
Definition: OIDCAdvancedConfigWrapper.java:128

◆ getUserInfoSignedResponseAlg()

Algorithm org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.getUserInfoSignedResponseAlg ( )
inline
49  {
50  String alg = getAttribute(OIDCConfigAttributes.USER_INFO_RESPONSE_SIGNATURE_ALG);
51  return alg==null ? null : Enum.valueOf(Algorithm.class, alg);
52  }
String getAttribute(String attrKey)
Definition: OIDCAdvancedConfigWrapper.java:128

◆ isExcludeSessionStateFromAuthResponse()

boolean org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.isExcludeSessionStateFromAuthResponse ( )
inline
99  {
100  String excludeSessionStateFromAuthResponse = getAttribute(OIDCConfigAttributes.EXCLUDE_SESSION_STATE_FROM_AUTH_RESPONSE);
101  return Boolean.parseBoolean(excludeSessionStateFromAuthResponse);
102  }
String getAttribute(String attrKey)
Definition: OIDCAdvancedConfigWrapper.java:128

◆ isUseJwksUrl()

boolean org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.isUseJwksUrl ( )
inline
81  {
82  String useJwksUrl = getAttribute(OIDCConfigAttributes.USE_JWKS_URL);
83  return Boolean.parseBoolean(useJwksUrl);
84  }
String getAttribute(String attrKey)
Definition: OIDCAdvancedConfigWrapper.java:128

◆ isUseMtlsHokToken()

boolean org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.isUseMtlsHokToken ( )
inline
111  {
112  String useUtlsHokToken = getAttribute(OIDCConfigAttributes.USE_MTLS_HOK_TOKEN);
113  return Boolean.parseBoolean(useUtlsHokToken);
114  }
String getAttribute(String attrKey)
Definition: OIDCAdvancedConfigWrapper.java:128

◆ isUserInfoSignatureRequired()

boolean org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.isUserInfoSignatureRequired ( )
inline
59  {
60  return getUserInfoSignedResponseAlg() != null;
61  }
Algorithm getUserInfoSignedResponseAlg()
Definition: OIDCAdvancedConfigWrapper.java:49

◆ setAttribute()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setAttribute ( String  attrKey,
String  attrValue 
)
inlineprivate
136  {
137  if (clientModel != null) {
138  if (attrValue != null) {
139  clientModel.setAttribute(attrKey, attrValue);
140  } else {
141  clientModel.removeAttribute(attrKey);
142  }
143  } else {
144  if (attrValue != null) {
145  if (clientRep.getAttributes() == null) {
146  clientRep.setAttributes(new HashMap<>());
147  }
148  clientRep.getAttributes().put(attrKey, attrValue);
149  } else {
150  if (clientRep.getAttributes() != null) {
151  clientRep.getAttributes().put(attrKey, null);
152  }
153  }
154  }
155  }
final ClientRepresentation clientRep
Definition: OIDCAdvancedConfigWrapper.java:32
final ClientModel clientModel
Definition: OIDCAdvancedConfigWrapper.java:31

◆ setExcludeSessionStateFromAuthResponse()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setExcludeSessionStateFromAuthResponse ( boolean  excludeSessionStateFromAuthResponse)
inline
104  {
105  String val = String.valueOf(excludeSessionStateFromAuthResponse);
106  setAttribute(OIDCConfigAttributes.EXCLUDE_SESSION_STATE_FROM_AUTH_RESPONSE, val);
107  }
void setAttribute(String attrKey, String attrValue)
Definition: OIDCAdvancedConfigWrapper.java:136

◆ setIdTokenSignedResponseAlg()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setIdTokenSignedResponseAlg ( String  algName)
inline
124  {
125  setAttribute(OIDCConfigAttributes.ID_TOKEN_SIGNED_RESPONSE_ALG, algName);
126  }
void setAttribute(String attrKey, String attrValue)
Definition: OIDCAdvancedConfigWrapper.java:136

◆ setJwksUrl()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setJwksUrl ( String  jwksUrl)
inline
95  {
96  setAttribute(OIDCConfigAttributes.JWKS_URL, jwksUrl);
97  }
void setAttribute(String attrKey, String attrValue)
Definition: OIDCAdvancedConfigWrapper.java:136

◆ setRequestObjectRequired()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setRequestObjectRequired ( String  requestObjectRequired)
inline
77  {
78  setAttribute(OIDCConfigAttributes.REQUEST_OBJECT_REQUIRED, requestObjectRequired);
79  }
void setAttribute(String attrKey, String attrValue)
Definition: OIDCAdvancedConfigWrapper.java:136

◆ setRequestObjectSignatureAlg()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setRequestObjectSignatureAlg ( Algorithm  alg)
inline
68  {
69  String algStr = alg==null ? null : alg.toString();
70  setAttribute(OIDCConfigAttributes.REQUEST_OBJECT_SIGNATURE_ALG, algStr);
71  }
void setAttribute(String attrKey, String attrValue)
Definition: OIDCAdvancedConfigWrapper.java:136

◆ setUseJwksUrl()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setUseJwksUrl ( boolean  useJwksUrl)
inline
86  {
87  String val = String.valueOf(useJwksUrl);
88  setAttribute(OIDCConfigAttributes.USE_JWKS_URL, val);
89  }
void setAttribute(String attrKey, String attrValue)
Definition: OIDCAdvancedConfigWrapper.java:136

◆ setUseMtlsHoKToken()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setUseMtlsHoKToken ( boolean  useUtlsHokToken)
inline
116  {
117  String val = String.valueOf(useUtlsHokToken);
118  setAttribute(OIDCConfigAttributes.USE_MTLS_HOK_TOKEN, val);
119  }
void setAttribute(String attrKey, String attrValue)
Definition: OIDCAdvancedConfigWrapper.java:136

◆ setUserInfoSignedResponseAlg()

void org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.setUserInfoSignedResponseAlg ( Algorithm  alg)
inline
54  {
55  String algStr = alg==null ? null : alg.toString();
56  setAttribute(OIDCConfigAttributes.USER_INFO_RESPONSE_SIGNATURE_ALG, algStr);
57  }
void setAttribute(String attrKey, String attrValue)
Definition: OIDCAdvancedConfigWrapper.java:136

メンバ詳解

◆ clientModel

final ClientModel org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.clientModel
private

◆ clientRep

final ClientRepresentation org.keycloak.protocol.oidc.OIDCAdvancedConfigWrapper.clientRep
private

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