MCPcopy Create free account
hub / github.com/OWASP/SecurityShepherd / isValidEmailAddress

Method isValidEmailAddress

src/main/java/utils/Validate.java:125–141  ·  view source on GitHub ↗

Email validation @param email @return Boolean reflect email validity

(String email)

Source from the content-addressed store, hash-verified

123 * @return Boolean reflect email validity
124 */
125 public static boolean isValidEmailAddress(String email)
126 {
127 boolean result = true;
128 try
129 {
130 log.debug("About to crash");
131 InternetAddress emailAddr = new InternetAddress(email);
132 log.debug("Did we crash");
133 emailAddr.validate();
134 log.debug("Didn't crash");
135 }
136 catch (AddressException ex)
137 {
138 result = false;
139 }
140 return result;
141 }
142
143 /**
144 * Invalid password detecter

Callers 7

doPostMethod · 0.95
doPostMethod · 0.95
doPostMethod · 0.95
doPostMethod · 0.95
doPostMethod · 0.95
doPostMethod · 0.95
doPostMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected