Searched refs:usernamePassword (Results 1 – 2 of 2) sorted by relevance
64 public UsernamePasswordCredentials(String usernamePassword) { in UsernamePasswordCredentials() argument66 if (usernamePassword == null) { in UsernamePasswordCredentials()69 int atColon = usernamePassword.indexOf(':'); in UsernamePasswordCredentials()71 this.principal = new BasicUserPrincipal(usernamePassword.substring(0, atColon)); in UsernamePasswordCredentials()72 this.password = usernamePassword.substring(atColon + 1); in UsernamePasswordCredentials()74 this.principal = new BasicUserPrincipal(usernamePassword); in UsernamePasswordCredentials()
68 public NTCredentials(String usernamePassword) { in NTCredentials() argument70 if (usernamePassword == null) { in NTCredentials()74 int atColon = usernamePassword.indexOf(':'); in NTCredentials()76 username = usernamePassword.substring(0, atColon); in NTCredentials()77 this.password = usernamePassword.substring(atColon + 1); in NTCredentials()79 username = usernamePassword; in NTCredentials()