public String getUserClaimValue(String userName, String claim, String profileName) throws UserStoreException { return getUserStoreManager().getUserClaimValue(userName, claim, profileName); }
public void addUserClaimValue(String userName, String claimURI, String claimValue, String profileName) throws UserStoreException { String existingClaimValue = getUserStoreManager().getUserClaimValue(userName, claimURI, profileName); if (existingClaimValue == null) { existingClaimValue = EMPTY; } if (claimValue != null && !EMPTY.equals(claimValue) && !EMPTY.equals(existingClaimValue)) { claimValue = existingClaimValue + "," + claimValue; } getUserStoreManager().setUserClaimValue(userName, claimURI, claimValue, profileName); }
accountLockedClaim = userStoreManager.getUserClaimValue(userName, AccountConstants.ACCOUNT_LOCKED_CLAIM, null); } catch (UserStoreException e) { long unlockTime = 0; try { String userClaimValue = userStoreManager.getUserClaimValue(userName, AccountConstants.ACCOUNT_UNLOCK_TIME_CLAIM, null); if (NumberUtils.isNumber(userClaimValue)) {
int currentFailedAttempts; try { String loginAttemptCycles = userStoreManager.getUserClaimValue(userName, AccountConstants.FAILED_LOGIN_LOCKOUT_COUNT_CLAIM, null); failedLoginLockoutCountValue = Integer.parseInt(loginAttemptCycles); String currentFailedAttemptCount = userStoreManager.getUserClaimValue(userName, AccountConstants.FAILED_LOGIN_ATTEMPTS_CLAIM, null);
existingAccountLockedValue = Boolean.parseBoolean(userStoreManager.getUserClaimValue(userName, AccountConstants.ACCOUNT_LOCKED_CLAIM, null)); } catch (UserStoreException e) {
String oldValue = userStoreManager.getUserClaimValue(userName, claim, null); if (oldValue == null || !oldValue.equals(value)) { Map<String,String> claimMap = new HashMap<String,String>();
String oldValue = userStoreManager.getUserClaimValue(userName, claim, null); if (oldValue == null || !oldValue.equals(value)) { Map<String,String> claimMap = new HashMap<String,String>();
String scimId = userStoreManager.getUserClaimValue(adminUsername, SCIMConstants.ID_URI, UserCoreConstants.DEFAULT_PROFILE); if (StringUtils.isEmpty(scimId)) {
String existingClaimValue = getUserStoreManager().getUserClaimValue(userName, claim.getClaimURI(), profileName); if (existingClaimValue == null) {
String activeAttributeValue = userStoreManager.getUserClaimValue(userName, SCIMConstants.ACTIVE_URI, null); boolean isUserActive = true; if (activeAttributeValue != null) {
String scimId = userStoreManager.getUserClaimValue(adminUsername, SCIMConstants .CommonSchemaConstants.ID_URI, UserCoreConstants.DEFAULT_PROFILE); if (log.isDebugEnabled()) {
getUserClaimValue(MultitenantUtils.getTenantAwareUsername(username), userNameUri, null); if (StringUtils.isNotBlank(usernameValue)) { tenantDomain = MultitenantUtils.getTenantDomain(username);
String scimId = userStoreManager.getUserClaimValue(adminUsername, SCIMConstants.ID_URI, UserCoreConstants.DEFAULT_PROFILE); if (log.isDebugEnabled()) {
private String getSubjectClaimFromUserStore(String subjectClaimUri, AuthenticatedUser authenticatedUser) throws UserStoreException, IdentityException { UserStoreManager userStoreManager = IdentityTenantUtil .getRealm(authenticatedUser.getTenantDomain(), authenticatedUser.toFullQualifiedUsername()) .getUserStoreManager(); return userStoreManager .getSecondaryUserStoreManager(authenticatedUser.getUserStoreDomain()) .getUserClaimValue(authenticatedUser.getUserName(), subjectClaimUri, null); }
getUserClaimValue(MultitenantUtils.getTenantAwareUsername(username), userNameUri, null); if (usernameValue != null && usernameValue.trim().length() > 0) { tenantDomain = MultitenantUtils.getTenantDomain(username);
localClaimValue = IdentityProviderServiceComponent.getRealmService(). getBootstrapRealm().getUserStoreManager(). getUserClaimValue(userIdentifier, localClaimUri, "default");
getUserClaimValue(userIdentifier, localClaimUri, "default");
flaggedNames[i].setItemName(user); String displayName = realm.getUserStoreManager().getUserClaimValue(user, DISAPLAY_NAME_CLAIM, null); int index = user.indexOf(UserCoreConstants.DOMAIN_SEPARATOR); if (index > 0) {
flaggedNames[i].setItemName(user); String displayName = realm.getUserStoreManager().getUserClaimValue(user, DISAPLAY_NAME_CLAIM, null); int index = user.indexOf(UserCoreConstants.DOMAIN_SEPARATOR); if (index > 0) {
String userId = carbonUM.getUserClaimValue(userName, SCIMConstants.CommonSchemaConstants.ID_URI, null); group.setMember(userId, userName);