Searched refs:usernamePassword (Results 1 – 2 of 2) sorted by relevance
59 public UsernamePasswordCredentials(String usernamePassword) { in UsernamePasswordCredentials() argument61 if (usernamePassword == null) { in UsernamePasswordCredentials()64 int atColon = usernamePassword.indexOf(':'); in UsernamePasswordCredentials()66 this.principal = new BasicUserPrincipal(usernamePassword.substring(0, atColon)); in UsernamePasswordCredentials()67 this.password = usernamePassword.substring(atColon + 1); in UsernamePasswordCredentials()69 this.principal = new BasicUserPrincipal(usernamePassword); in UsernamePasswordCredentials()
63 public NTCredentials(String usernamePassword) { in NTCredentials() argument65 if (usernamePassword == null) { in NTCredentials()69 int atColon = usernamePassword.indexOf(':'); in NTCredentials()71 username = usernamePassword.substring(0, atColon); in NTCredentials()72 this.password = usernamePassword.substring(atColon + 1); in NTCredentials()74 username = usernamePassword; in NTCredentials()