Skip navigation links


oracle.iam.identity.usermgmt.api
Interface UserNamePolicy


public interface UserNamePolicy

Method Summary
 java.lang.String getDescription(java.util.Locale locale)
          Gets the description of the user name policy in the specified locale
 java.lang.String getUserNameFromPolicy(java.util.Map reqData)
          Generates a user name based on the user name generation policy using the data user available in the input Map
 boolean isUserNameValid(java.lang.String userName, java.util.Map reqData)
          Validates if the user name based on the user data specified in the input Map is valid as per the user name generation policy

 

Method Detail

getUserNameFromPolicy

java.lang.String getUserNameFromPolicy(java.util.Map reqData)
                                       throws UserNameGenerationException
Generates a user name based on the user name generation policy using the data user available in the input Map
Parameters:
reqData - the Map containing the user data
Returns:
the generated user name
Throws:
UserNameGenerationException - if there is an exception while generating the user name

isUserNameValid

boolean isUserNameValid(java.lang.String userName,
                        java.util.Map reqData)
Validates if the user name based on the user data specified in the input Map is valid as per the user name generation policy
Parameters:
userName - the user name to be validated against the policy
reqData - the Map containing the user data
Returns:
True if the user name is valid as per the policy, false otherwise

getDescription

java.lang.String getDescription(java.util.Locale locale)
Gets the description of the user name policy in the specified locale
Parameters:
locale - locale in which the policy description is to be specified
Returns:
description of the user name policy in the specified locale

Skip navigation links


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.