(FuzzedDataProvider data)
| 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); |
no test coverage detected