MCPcopy Create free account
hub / github.com/cncf/cncf-fuzzing / createKeycloakSession

Method createKeycloakSession

projects/keycloak/BaseHelper.java:118–130  ·  view source on GitHub ↗
(FuzzedDataProvider data)

Source from the content-addressed store, hash-verified

116 private static AuthenticationFlowContext flowContext;
117
118 public static KeycloakSession createKeycloakSession(FuzzedDataProvider data) {
119
120 if (session == null) {
121 // Initialise crypto providers
122 CryptoIntegration.init(BaseHelper.class.getClassLoader());
123
124 // Initialise a keycloak session object
125 session = new MockKeycloakSession();
126 session.init(data);
127 }
128
129 return session.getSession();
130 }
131
132 public static RealmModel createRealmModel(FuzzedDataProvider data) {
133 return createRealmModel(data, true);

Callers 5

fuzzerTestOneInputMethod · 0.95
fuzzerTestOneInputMethod · 0.95
fuzzerTestOneInputMethod · 0.95
createRealmModelMethod · 0.95

Calls 2

initMethod · 0.80
getSessionMethod · 0.45

Tested by

no test coverage detected