Skip to content

Commit

Permalink
Revocable token storage
Browse files Browse the repository at this point in the history
  • Loading branch information
fhanik committed Apr 5, 2016
1 parent d842f44 commit 914e10f
Show file tree
Hide file tree
Showing 10 changed files with 286 additions and 345 deletions.
@@ -1,5 +1,3 @@
package org.cloudfoundry.identity.uaa.oauth.token;

/******************************************************************************* /*******************************************************************************
* Cloud Foundry * Cloud Foundry
* Copyright (c) [2009-2015] Pivotal Software, Inc. All Rights Reserved. * Copyright (c) [2009-2015] Pivotal Software, Inc. All Rights Reserved.
Expand All @@ -12,10 +10,12 @@
* subcomponents is subject to the terms and conditions of the * subcomponents is subject to the terms and conditions of the
* subcomponent's license, as noted in the LICENSE file. * subcomponent's license, as noted in the LICENSE file.
*******************************************************************************/ *******************************************************************************/
package org.cloudfoundry.identity.uaa.oauth.token;

public class RevocableToken { public class RevocableToken {


public enum TokenType { public enum TokenType {
ID_TOKEN, TOKEN, REFRESH_TOKEN ID_TOKEN, ACCESS_TOKEN, REFRESH_TOKEN
}; };


private String tokenId; private String tokenId;
Expand All @@ -27,76 +27,95 @@ public enum TokenType {
private long expiresAt; private long expiresAt;
private String scope; private String scope;
private String value; private String value;
private String zoneId;


public String getTokenId() { public String getTokenId() {
return tokenId; return tokenId;
} }


public void setTokenId(String tokenId) { public RevocableToken setTokenId(String tokenId) {
this.tokenId = tokenId; this.tokenId = tokenId;
return this;
} }


public String getClientId() { public String getClientId() {
return clientId; return clientId;
} }


public void setClientId(String clientId) { public RevocableToken setClientId(String clientId) {
this.clientId = clientId; this.clientId = clientId;
return this;
} }


public String getUserId() { public String getUserId() {
return userId; return userId;
} }


public void setUserId(String userId) { public RevocableToken setUserId(String userId) {
this.userId = userId; this.userId = userId;
return this;
} }


public String getFormat() { public String getFormat() {
return format; return format;
} }


public void setFormat(String format) { public RevocableToken setFormat(String format) {
this.format = format; this.format = format;
return this;
} }


public TokenType getResponseType() { public TokenType getResponseType() {
return responseType; return responseType;
} }


public void setResponseType(TokenType responseType) { public RevocableToken setResponseType(TokenType responseType) {
this.responseType = responseType; this.responseType = responseType;
return this;
} }


public long getIssuedAt() { public long getIssuedAt() {
return issuedAt; return issuedAt;
} }


public void setIssuedAt(long issuedAt) { public RevocableToken setIssuedAt(long issuedAt) {
this.issuedAt = issuedAt; this.issuedAt = issuedAt;
return this;
} }


public long getExpiresAt() { public long getExpiresAt() {
return expiresAt; return expiresAt;
} }


public void setExpiresAt(long expiresAt) { public RevocableToken setExpiresAt(long expiresAt) {
this.expiresAt = expiresAt; this.expiresAt = expiresAt;
return this;
} }


public String getScope() { public String getScope() {
return scope; return scope;
} }


public void setScope(String scope) { public RevocableToken setScope(String scope) {
this.scope = scope; this.scope = scope;
return this;
} }


public String getValue() { public String getValue() {
return value; return value;
} }


public void setValue(String value) { public RevocableToken setValue(String value) {
this.value = value; this.value = value;
return this;
}

public String getZoneId() {
return zoneId;
}

public RevocableToken setZoneId(String zoneId) {
this.zoneId = zoneId;
return this;
} }
} }

This file was deleted.

0 comments on commit 914e10f

Please sign in to comment.