|
static String | generateId () |
|
static byte [] | generateSecret () |
|
static byte [] | generateSecret (int bytes) |
|
static PublicKey | getPublicKey (String publicKeyPem) |
|
static X509Certificate | getCertificate (String cert) |
|
static PrivateKey | getPrivateKey (String privateKeyPem) |
|
static Key | getSecretKey (String secret) |
|
static String | getPemFromKey (Key key) |
|
static String | getPemFromCertificate (X509Certificate certificate) |
|
static CertificateRepresentation | generateKeyPairCertificate (String subject) |
|
static UserCredentialModel | generateSecret (ClientModel client) |
|
static String | getDefaultClientAuthenticatorType () |
|
static String | generateCodeSecret () |
|
static ClientModel | createClient (RealmModel realm, String name) |
|
static boolean | searchFor (RoleModel role, RoleModel composite, Set< String > visited) |
|
static UserModel | findUserByNameOrEmail (KeycloakSession session, RealmModel realm, String username) |
|
static void | runJobInTransaction (KeycloakSessionFactory factory, KeycloakSessionTask task) |
|
static void | runJobInTransactionWithTimeout (KeycloakSessionFactory factory, KeycloakSessionTask task, int timeoutInSeconds) |
|
static String | getMasterRealmAdminApplicationClientId (String realmName) |
|
static UserStorageProviderModel | findUserStorageProviderByName (String displayName, RealmModel realm) |
|
static UserStorageProviderModel | findUserStorageProviderById (String fedProviderId, RealmModel realm) |
|
static ComponentModel | createComponentModel (String name, String parentId, String providerId, String providerType, String... config) |
|
static String | toLowerCaseSafe (String str) |
|
static RoleModel | setupOfflineRole (RealmModel realm) |
|
static void | deepFindAuthenticationExecutions (RealmModel realm, AuthenticationFlowModel flow, List< AuthenticationExecutionModel > result) |
|
static String | resolveFirstAttribute (GroupModel group, String name) |
|
static String | resolveFirstAttribute (UserModel user, String name) |
|
static List< String > | resolveAttribute (GroupModel group, String name) |
|
static List< String > | resolveAttribute (UserModel user, String name) |
|
static GroupModel | findGroupByPath (RealmModel realm, String path) |
|
static Set< RoleModel > | getClientScopeMappings (ClientModel client, ScopeContainerModel container) |
|
static RoleModel | getRoleFromString (RealmModel realm, String roleName) |
|
static String [] | parseRole (String role) |
|
static boolean | isFlowUsed (RealmModel realm, AuthenticationFlowModel model) |
|
static boolean | isClientScopeUsed (RealmModel realm, ClientScopeModel clientScope) |
|
static ClientScopeModel | getClientScopeByName (RealmModel realm, String clientScopeName) |
|
static ClientScopeModel | findClientScopeById (RealmModel realm, String clientScopeId) |
|
static String | convertClientScopeName (String previousName) |
|
static void | setupAuthorizationServices (RealmModel realm) |
|
static void | suspendJtaTransaction (KeycloakSessionFactory factory, Runnable runnable) |
|
static String | getIdentityProviderDisplayName (KeycloakSession session, IdentityProviderModel provider) |
|
Set of helper methods, which are useful in various model implementations.
- 著者
- Marek Posolda