// Path: locate-api-service/src/main/java/uk/gov/gds/locate/api/authentication/Obfuscated.java
// public static String getObfuscatedToken(String token) {
//     return String.format("%s...%s", token.substring(0, 2), token.substring(token.length() - 2));
// }


import com.google.common.base.Objects;
import static com.google.common.base.Preconditions.checkNotNull;
import static uk.gov.gds.locate.api.authentication.Obfuscated.getObfuscatedToken;
package uk.gov.gds.locate.api.authentication;



public class BearerToken {

    private final String bearerToken;

    public BearerToken(String bearerToken) {
        this.bearerToken = checkNotNull(bearerToken);
    }

    public String getBearerToken() {
        return bearerToken;
    }

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
// Path: locate-api-service/src/main/java/uk/gov/gds/locate/api/authentication/Obfuscated.java
// public static String getObfuscatedToken(String token) {
//     return String.format("%s...%s", token.substring(0, 2), token.substring(token.length() - 2));
// }


// Path: locate-api-service/src/main/java/uk/gov/gds/locate/api/authentication/BearerToken.java
import com.google.common.base.Objects;
import static com.google.common.base.Preconditions.checkNotNull;
import static uk.gov.gds.locate.api.authentication.Obfuscated.getObfuscatedToken;

package uk.gov.gds.locate.api.authentication;



public class BearerToken {

    private final String bearerToken;

    public BearerToken(String bearerToken) {
        this.bearerToken = checkNotNull(bearerToken);
    }

    public String getBearerToken() {
        return bearerToken;
    }

    @Override
    public String toString() {
        return Objects.toStringHelper(this)
                .add("bearerToken", getObfuscatedToken(bearerToken))