MCPcopy Index your code
hub / github.com/chain/Core / buildCredentials

Method buildCredentials

sdk/java/src/main/java/com/chain/http/Client.java:520–533  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

518 }
519
520 private String buildCredentials() {
521 String user = "";
522 String pass = "";
523 if (hasAccessToken()) {
524 String[] parts = accessToken.split(":");
525 if (parts.length >= 1) {
526 user = parts[0];
527 }
528 if (parts.length >= 2) {
529 pass = parts[1];
530 }
531 }
532 return Credentials.basic(user, pass);
533 }
534
535 /**
536 * Overrides {@link Object#hashCode()}

Callers 1

postMethod · 0.95

Calls 1

hasAccessTokenMethod · 0.95

Tested by

no test coverage detected