public final class UserUtil extends java.lang.Object implements UserConstants
CREDENTIALS_ATTRIBUTE_NEWPASSWORD, DEFAULT_ADMIN_ID, DEFAULT_ANONYMOUS_ID, DEFAULT_DEPTH, DEFAULT_ENABLE_RFC7613_USERCASE_MAPPED_PROFILE, DEFAULT_GROUP_PATH, DEFAULT_PASSWORD_INITIAL_CHANGE, DEFAULT_PASSWORD_MAX_AGE, DEFAULT_SYSTEM_RELATIVE_PATH, DEFAULT_USER_PATH, GROUP_PROPERTY_NAMES, MIX_REP_IMPERSONATABLE, NT_NAMES, NT_REP_AUTHORIZABLE, NT_REP_AUTHORIZABLE_FOLDER, NT_REP_GROUP, NT_REP_MEMBER_REFERENCES, NT_REP_MEMBER_REFERENCES_LIST, NT_REP_MEMBERS, NT_REP_PASSWORD, NT_REP_SYSTEM_USER, NT_REP_USER, PARAM_ADMIN_ID, PARAM_ANONYMOUS_ID, PARAM_AUTHORIZABLE_ACTION_PROVIDER, PARAM_AUTHORIZABLE_NODE_NAME, PARAM_DEFAULT_DEPTH, PARAM_ENABLE_RFC7613_USERCASE_MAPPED_PROFILE, PARAM_GROUP_PATH, PARAM_OMIT_ADMIN_PW, PARAM_PASSWORD_HASH_ALGORITHM, PARAM_PASSWORD_HASH_ITERATIONS, PARAM_PASSWORD_HISTORY_SIZE, PARAM_PASSWORD_INITIAL_CHANGE, PARAM_PASSWORD_MAX_AGE, PARAM_PASSWORD_SALT_SIZE, PARAM_SUPPORT_AUTOSAVE, PARAM_SYSTEM_RELATIVE_PATH, PARAM_USER_AUTHENTICATION_FACTORY, PARAM_USER_PATH, PASSWORD_HISTORY_DISABLED_SIZE, PWD_PROPERTY_NAMES, REP_AUTHORIZABLE_ID, REP_DISABLED, REP_IMPERSONATORS, REP_MEMBERS, REP_MEMBERS_LIST, REP_PASSWORD, REP_PASSWORD_LAST_MODIFIED, REP_PRINCIPAL_NAME, REP_PWD, REP_PWD_HISTORY, USER_PROPERTY_NAMES| Modifier and Type | Method and Description | 
|---|---|
static <T extends Authorizable> | 
castAuthorizable(@Nullable Authorizable authorizable,
                java.lang.Class<T> authorizableClass)  | 
static @NotNull java.lang.String | 
getAdminId(@NotNull ConfigurationParameters parameters)  | 
static @NotNull java.lang.String | 
getAnonymousId(@NotNull ConfigurationParameters parameters)  | 
static @Nullable java.lang.String | 
getAuthorizableId(@NotNull Tree authorizableTree)  | 
static @NotNull java.lang.String | 
getAuthorizableId(@NotNull Tree authorizableTree,
                 @NotNull AuthorizableType type)
Retrieve the id from the given  
authorizableTree, which must have
 been verified for being a valid authorizable of the specified type upfront. | 
static @Nullable java.lang.String | 
getAuthorizableRootPath(@NotNull ConfigurationParameters parameters,
                       @Nullable AuthorizableType type)  | 
static int | 
getImportBehavior(@NotNull ConfigurationParameters config)
Return the configured  
ImportBehavior
 for the given config. | 
static @Nullable AuthorizableType | 
getType(@Nullable java.lang.String primaryTypeName)  | 
static @Nullable AuthorizableType | 
getType(@NotNull Tree authorizableNode)  | 
static boolean | 
isAdmin(@NotNull ConfigurationParameters parameters,
       @NotNull java.lang.String userId)  | 
static boolean | 
isSystemUser(@Nullable Tree authorizableTree)  | 
static boolean | 
isType(@Nullable Tree authorizableTree,
      @NotNull AuthorizableType type)  | 
public static boolean isAdmin(@NotNull
                              @NotNull ConfigurationParameters parameters,
                              @NotNull
                              @NotNull java.lang.String userId)
@NotNull
public static @NotNull java.lang.String getAdminId(@NotNull
                                                            @NotNull ConfigurationParameters parameters)
@NotNull
public static @NotNull java.lang.String getAnonymousId(@NotNull
                                                                @NotNull ConfigurationParameters parameters)
public static boolean isType(@Nullable
                             @Nullable Tree authorizableTree,
                             @NotNull
                             @NotNull AuthorizableType type)
@Nullable public static @Nullable AuthorizableType getType(@NotNull @NotNull Tree authorizableNode)
@Nullable public static @Nullable AuthorizableType getType(@Nullable @Nullable java.lang.String primaryTypeName)
public static boolean isSystemUser(@Nullable
                                   @Nullable Tree authorizableTree)
@Nullable
public static @Nullable java.lang.String getAuthorizableRootPath(@NotNull
                                                                           @NotNull ConfigurationParameters parameters,
                                                                           @Nullable
                                                                           @Nullable AuthorizableType type)
@Nullable
public static @Nullable java.lang.String getAuthorizableId(@NotNull
                                                                     @NotNull Tree authorizableTree)
@NotNull
public static @NotNull java.lang.String getAuthorizableId(@NotNull
                                                                   @NotNull Tree authorizableTree,
                                                                   @NotNull
                                                                   @NotNull AuthorizableType type)
authorizableTree, which must have
 been verified for being a valid authorizable of the specified type upfront.authorizableTree - The authorizable tree which must be of the given type/type - The type of the authorizable tree.AuthorizableTree.@Nullable public static <T extends Authorizable> T castAuthorizable(@Nullable @Nullable Authorizable authorizable, java.lang.Class<T> authorizableClass) throws AuthorizableTypeException
AuthorizableTypeExceptionpublic static int getImportBehavior(@NotNull
                                    @NotNull ConfigurationParameters config)
ImportBehavior
 for the given config. The default behavior in case
 ProtectedItemImporter.PARAM_IMPORT_BEHAVIOR
 is not contained in the config object is
 ImportBehavior.IGNOREconfig - The configuration parameters.ProtectedItemImporter.PARAM_IMPORT_BEHAVIOR
 or ImportBehavior.IGNORE if this
 config parameter is missing.Copyright © 2010 - 2023 Adobe. All Rights Reserved