public class IdRepoUtils extends Object
Constructor and Description |
---|
IdRepoUtils() |
Modifier and Type | Method and Description |
---|---|
static Map<String,?> |
getAttrMapWithoutPasswordAttrs(Map<String,?> attrMap,
Set<String> pwdAttrs)
Returns an attribute map with all the password attributes being masked.
|
static boolean |
hasIdRepoSchema(String idRepoType)
Return true if specified IdRepo type has schemas.
|
static void |
loadIdRepoSchema(SSOToken ssoToken,
String idRepoName,
String realm,
javax.servlet.ServletContext servletCtx)
Loads schema to specified IdRepo.
|
static Map<String,String> |
parseAttributeMapping(Set<String> mappings)
Parses attribute mapping settings in the format of "from=to".
|
static Map<IdType,Set<IdOperation>> |
parseSupportedTypesAndOperations(Set<String> typesAndOperations)
Parses the incoming types and operations in string format to their domain object equivalent.
|
public static Map<String,?> getAttrMapWithoutPasswordAttrs(Map<String,?> attrMap, Set<String> pwdAttrs)
attrMap
- an attribute mappwdAttrs
- a set of password attribute namespublic static boolean hasIdRepoSchema(String idRepoType)
idRepoType
- IdRepo typepublic static void loadIdRepoSchema(SSOToken ssoToken, String idRepoName, String realm, javax.servlet.ServletContext servletCtx) throws IdRepoException
ssoToken
- single sign on token of authenticated user identityidRepoName
- IdRepo namerealm
- the realmservletCtx
- the servlet contextIdRepoException
- If schema can't be loaded or there are
repository related error conditions.public static Map<IdType,Set<IdOperation>> parseSupportedTypesAndOperations(Set<String> typesAndOperations)
user=read,edit,service,delete
will be turned into USER identity type with READ, EDIT, SERVICE, DELETE operations.typesAndOperations
- The parsable type and operation lines (each line represents an identity type.public static Map<String,String> parseAttributeMapping(Set<String> mappings)
mappings
- A set of mappings that needs to be parsedCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.