All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.swisspush.gateleen.routing.auth.OAuthId Maven / Gradle / Ivy

There is a newer version: 2.1.15
Show newest version
package org.swisspush.gateleen.routing.auth;

public class OAuthId {

    private final String oAuthId;

    private OAuthId(String oAuthId) {
        this.oAuthId = oAuthId;
    }

    public static OAuthId of(String oAuthId){
        return new OAuthId(oAuthId);
    }

    public String oAuthId() {
        return oAuthId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        OAuthId oAuthId1 = (OAuthId) o;

        return oAuthId.equals(oAuthId1.oAuthId);
    }

    @Override
    public int hashCode() {
        return oAuthId.hashCode();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy