tvaultapi/src/main/java/com/tmobile/cso/vault/api/controller/ControllerUtil.java
public static SSCred readSSCredFile(String fileLocation, boolean isDelete)  {
		File ssFile = null;
		log.debug("Trying to read sscred file");
		try {
			ssFile = new File(fileLocation+"/sscred");
			if (ssFile.exists()) {
				sscred = new SSCred();
				setSscred(sscred);
				Scanner sc = new Scanner(ssFile);
				while (sc.hasNextLine()) {
					String line = sc.nextLine();
					if (line.startsWith(USERSTR)) {
						ssUsername = line.substring(USERSTR.length(), line.length());
						sscred.setUsername(line.substring(USERSTR.length(), line.length()));
						log.debug("Successfully read username: from sscred file");
					}
					else if (line.startsWith(PASSWORDSTR)) {
						ssPassword = line.substring(PASSWORDSTR.length(), line.length());
						sscred.setPassword(line.substring(PASSWORDSTR.length(), line.length()));
						log.debug("Successfully read password: from sscred file");
					}
					else if (line.startsWith(NCLMUSERNAMESTR)) {
						nclmUsername = line.substring(NCLMUSERNAMESTR.length(), line.length());
						sscred.setNclmusername(line.substring(NCLMUSERNAMESTR.length(), line.length()));
						log.debug("Successfully read nclm username: from sscred file");
					}
					else if (line.startsWith(NCLMPASSWORDSTR)) {
						nclmPassword = line.substring(NCLMPASSWORDSTR.length(), line.length());
						sscred.setNclmpassword(line.substring(NCLMPASSWORDSTR.length(), line.length()));
						log.debug("Successfully read nclmpassword: from sscred file");
					}
					else if (line.startsWith(CWMTOKENSTR)) {
						cwmToken = line.substring(CWMTOKENSTR.length(), line.length());
						sscred.setCwmToken(line.substring(CWMTOKENSTR.length(), line.length()));
						log.debug("Successfully read cwmToken: from sscred file");
					}

				}
				sc.close();
			}
		} catch (IOException e) {
			log.error(String.format("Unable to read sscred file: [%s]", e.getMessage()));
		}
		deletesscredFile(ssFile,isDelete);
		
		return sscred;
	}
/**
	 * Reads the SSCred from the location
	 * @param fileLocation
	 * @param isDelete
	 * @return sscred 
	 */
Reads the SSCred from the location
@param fileLocation
@param isDelete
@return sscred
Reads the SSCred from the location @param fileLocation @param isDelete @return sscred
public static SSCred readSSCredFile(String fileLocation, boolean isDelete)  {
		File ssFile = null;
		log.debug("Trying to read sscred file");
		try {
			ssFile = new File(fileLocation+"/sscred");
			if (ssFile.exists()) {
				sscred = new SSCred();
				setSscred(sscred);
				Scanner sc = new Scanner(ssFile);
				while (sc.hasNextLine()) {
					String line = sc.nextLine();
					if (line.startsWith(USERSTR)) {
						ssUsername = line.substring(USERSTR.length(), line.length());
						sscred.setUsername(line.substring(USERSTR.length(), line.length()));
						log.debug("Successfully read username: from sscred file");
					}
					else if (line.startsWith(PASSWORDSTR)) {
						ssPassword = line.substring(PASSWORDSTR.length(), line.length());
						sscred.setPassword(line.substring(PASSWORDSTR.length(), line.length()));
						log.debug("Successfully read password: from sscred file");
					}
					else if (line.startsWith(NCLMUSERNAMESTR)) {
						nclmUsername = line.substring(NCLMUSERNAMESTR.length(), line.length());
						sscred.setNclmusername(line.substring(NCLMUSERNAMESTR.length(), line.length()));
						log.debug("Successfully read nclm username: from sscred file");
					}
					else if (line.startsWith(NCLMPASSWORDSTR)) {
						nclmPassword = line.substring(NCLMPASSWORDSTR.length(), line.length());
						sscred.setNclmpassword(line.substring(NCLMPASSWORDSTR.length(), line.length()));
						log.debug("Successfully read nclmpassword: from sscred file");
					}
					else if (line.startsWith(CWMTOKENSTR)) {
						cwmToken = line.substring(CWMTOKENSTR.length(), line.length());
						sscred.setCwmToken(line.substring(CWMTOKENSTR.length(), line.length()));
						log.debug("Successfully read cwmToken: from sscred file");
					}
				}
				sc.close();
			}
		} catch (IOException e) {
			log.error(String.format("Unable to read sscred file: [%s]", e.getMessage()));
		}
		deletesscredFile(ssFile,isDelete);
		return sscred;
	}
public static SSCred readSSCredFile ( String fileLocation , boolean isDelete ) { File ssFile = null ; log . debug ( "Trying to read sscred file" ) ; try { ssFile = new File ( fileLocation + "/sscred" ) ; if ( ssFile . exists ( ) ) { sscred = new SSCred ( ) ; setSscred ( sscred ) ; Scanner sc = new Scanner ( ssFile ) ; while ( sc . hasNextLine ( ) ) { String line = sc . nextLine ( ) ; if ( line . startsWith ( USERSTR ) ) { ssUsername = line . substring ( USERSTR . length ( ) , line . length ( ) ) ; sscred . setUsername ( line . substring ( USERSTR . length ( ) , line . length ( ) ) ) ; log . debug ( "Successfully read username: from sscred file" ) ; } else if ( line . startsWith ( PASSWORDSTR ) ) { ssPassword = line . substring ( PASSWORDSTR . length ( ) , line . length ( ) ) ; sscred . setPassword ( line . substring ( PASSWORDSTR . length ( ) , line . length ( ) ) ) ; log . debug ( "Successfully read password: from sscred file" ) ; } else if ( line . startsWith ( NCLMUSERNAMESTR ) ) { nclmUsername = line . substring ( NCLMUSERNAMESTR . length ( ) , line . length ( ) ) ; sscred . setNclmusername ( line . substring ( NCLMUSERNAMESTR . length ( ) , line . length ( ) ) ) ; log . debug ( "Successfully read nclm username: from sscred file" ) ; } else if ( line . startsWith ( NCLMPASSWORDSTR ) ) { nclmPassword = line . substring ( NCLMPASSWORDSTR . length ( ) , line . length ( ) ) ; sscred . setNclmpassword ( line . substring ( NCLMPASSWORDSTR . length ( ) , line . length ( ) ) ) ; log . debug ( "Successfully read nclmpassword: from sscred file" ) ; } else if ( line . startsWith ( CWMTOKENSTR ) ) { cwmToken = line . substring ( CWMTOKENSTR . length ( ) , line . length ( ) ) ; sscred . setCwmToken ( line . substring ( CWMTOKENSTR . length ( ) , line . length ( ) ) ) ; log . debug ( "Successfully read cwmToken: from sscred file" ) ; } } sc . close ( ) ; } } catch ( IOException e ) { log . error ( String . format ( "Unable to read sscred file: [%s]" , e . getMessage ( ) ) ) ; } deletesscredFile ( ssFile , isDelete ) ; return sscred ; }
Reads the SSCred from the location
 @param fileLocation
 @param isDelete
 @return sscred
Reads the SSCred from the location @param fileLocation @param isDelete @return sscred