tvaultapi/src/main/java/com/tmobile/cso/vault/api/controller/ControllerUtil.java
public static boolean areAppRoleInputsValid(AppRole approle) {
		log.debug(JSONUtil.getJSON(ImmutableMap.<String, String>builder().
			      put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER)).
				  put(LogMessage.ACTION, "areAppRoleInputsValid").
			      put(LogMessage.MESSAGE,"Start trying to validate input parameters").
			      put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL)).
			      build()));
		if (null!=approle) {
			String approleName = approle.getRole_name();
			if (StringUtils.isEmpty(approleName) || !isAppRoleNameValid(approleName)) {
				return false;
			}
			return true;
		}
		return false;
	}
/**
	 * Validates the approle inputs
	 * @param approle
	 * @return
	 */
Validates the approle inputs
@param approle
@return
Validates the approle inputs @param approle @return
public static boolean areAppRoleInputsValid(AppRole approle) {
		log.debug(JSONUtil.getJSON(ImmutableMap.<String, String>builder().
			      put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER)).
				  put(LogMessage.ACTION, "areAppRoleInputsValid").
			      put(LogMessage.MESSAGE,"Start trying to validate input parameters").
			      put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL)).
			      build()));
		if (null!=approle) {
			String approleName = approle.getRole_name();
			if (StringUtils.isEmpty(approleName) || !isAppRoleNameValid(approleName)) {
				return false;
			}
			return true;
		}
		return false;
	}
public static boolean areAppRoleInputsValid ( AppRole approle ) { log . debug ( JSONUtil . getJSON ( ImmutableMap . < String , String > builder ( ) . put ( LogMessage . USER , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . USER ) ) . put ( LogMessage . ACTION , "areAppRoleInputsValid" ) . put ( LogMessage . MESSAGE , "Start trying to validate input parameters" ) . put ( LogMessage . APIURL , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . APIURL ) ) . build ( ) ) ) ; if ( null != approle ) { String approleName = approle . getRole_name ( ) ; if ( StringUtils . isEmpty ( approleName ) || ! isAppRoleNameValid ( approleName ) ) { return false ; } return true ; } return false ; }
Validates the approle inputs
 @param approle
 @return
Validates the approle inputs @param approle @return