package com.perforce.workspace.tjuricek.p4oauth.models; /** */ public class WhitelistedServer { private String name; private String redirectUri; private String ipAddress; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getRedirectUri() { return redirectUri; } public void setRedirectUri(String redirectUri) { this.redirectUri = redirectUri; } public String getIpAddress() { return ipAddress; } public void setIpAddress(String ipAddress) { this.ipAddress = ipAddress; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; WhitelistedServer that = (WhitelistedServer) o; if (ipAddress != null ? !ipAddress.equals(that.ipAddress) : that.ipAddress != null) return false; if (name != null ? !name.equals(that.name) : that.name != null) return false; if (redirectUri != null ? !redirectUri.equals(that.redirectUri) : that.redirectUri != null) return false; return true; } @Override public int hashCode() { int result = name != null ? name.hashCode() : 0; result = 31 * result + (redirectUri != null ? redirectUri.hashCode() : 0); result = 31 * result + (ipAddress != null ? ipAddress.hashCode() : 0); return result; } @Override public String toString() { return "WhitelistedServer{" + "name='" + name + '\'' + ", redirectUri='" + redirectUri + '\'' + ", ipAddress='" + ipAddress + '\'' + '}'; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 9095 | tjuricek | Added some basic test data and renamed "workspace" to "workshop" in package name | ||
#1 | 9089 | tjuricek |
Moving some code that worked via some manual validation to the workshop. This just implements a basic code authorization grant scheme. Automated tests are forthcoming, awating some gradle plugin work that should sit outside of this project. |