keycloak-service
公開メンバ関数 | 静的非公開変数類 | 全メンバ一覧
org.keycloak.theme.KeycloakSanitizerMethod クラス
org.keycloak.theme.KeycloakSanitizerMethod の継承関係図
Inheritance graph
org.keycloak.theme.KeycloakSanitizerMethod 連携図
Collaboration graph

公開メンバ関数

Object exec (List list) throws TemplateModelException
 

静的非公開変数類

static final PolicyFactory KEYCLOAK_POLICY = KeycloakSanitizerPolicy.POLICY_DEFINITION
 

詳解

Allows sanitizing of html that uses Freemarker ?no_esc. This way, html can be allowed but it is still cleaned up for safety. Tags and attributes deemed unsafe will be stripped out.

関数詳解

◆ exec()

Object org.keycloak.theme.KeycloakSanitizerMethod.exec ( List  list) throws TemplateModelException
inline
36  {
37  if ((list.isEmpty()) || (list.get(0) == null)) {
38  throw new NullPointerException("Can not escape null value.");
39  }
40 
41  String html = list.get(0).toString();
42  String sanitized = KEYCLOAK_POLICY.sanitize(html);
43 
44  return sanitized;
45  }
static final PolicyFactory KEYCLOAK_POLICY
Definition: KeycloakSanitizerMethod.java:33

メンバ詳解

◆ KEYCLOAK_POLICY

final PolicyFactory org.keycloak.theme.KeycloakSanitizerMethod.KEYCLOAK_POLICY = KeycloakSanitizerPolicy.POLICY_DEFINITION
staticprivate

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