package com.github.hburgmeier.jerseyoauth2.authsrv.impl.simple; import java.io.Serializable; import javax.xml.bind.annotation.XmlRootElement; import com.github.hburgmeier.jerseyoauth2.authsrv.api.client.ClientType; import com.github.hburgmeier.jerseyoauth2.authsrv.api.client.IRegisteredClientApp; @XmlRootElement public class SimpleRegisteredClient implements IRegisteredClientApp, Serializable { /** * */ private static final long serialVersionUID = 1L; private String clientId; private String clientSecret; private String appName; private String callbackUrl; private ClientType clientType; public SimpleRegisteredClient() { } public SimpleRegisteredClient(String clientId, String clientSecret, String appName, String callbackUrl, ClientType clientType) { super(); this.clientId = clientId; this.clientSecret = clientSecret; this.appName = appName; this.callbackUrl = callbackUrl; this.clientType = clientType; } public ClientType getClientType() { return clientType; } public void setClientType(ClientType clientType) { this.clientType = clientType; } @Override public String getClientId() { return clientId; } @Override public String getClientSecret() { return clientSecret; } @Override public String getApplicationName() { return appName; } public void setClientId(String clientId) { this.clientId = clientId; } public void setClientSecret(String clientSecret) { this.clientSecret = clientSecret; } public void setApplicationName(String appName) { this.appName = appName; } @Override public String getCallbackUrl() { return callbackUrl; } public void setCallbackUrl(String callbackUrl) { this.callbackUrl = callbackUrl; } }