Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor verification response into a JSON web key object.
[#134026441] https://www.pivotaltracker.com/story/show/134026441
- Loading branch information
Showing
10 changed files
with
150 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 16 additions & 21 deletions
37
...src/main/java/org/cloudfoundry/identity/uaa/oauth/token/VerificationKeysListResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,35 +1,30 @@ | |||
/* | /* | ||
* ****************************************************************************** | * **************************************************************************** | ||
* Cloud Foundry Copyright (c) [2009-2015] Pivotal Software, Inc. All Rights Reserved. | * Cloud Foundry | ||
* Copyright (c) [2009-2016] Pivotal Software, Inc. All Rights Reserved. | |||
* | * | ||
* This product is licensed to you under the Apache License, Version 2.0 (the "License"). | * This product is licensed to you under the Apache License, Version 2.0 (the "License"). | ||
* You may not use this product except in compliance with the License. | * You may not use this product except in compliance with the License. | ||
* | * | ||
* This product includes a number of subcomponents with | * This product includes a number of subcomponents with | ||
* separate copyright notices and license terms. Your use of these | * separate copyright notices and license terms. Your use of these | ||
* 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; | package org.cloudfoundry.identity.uaa.oauth.token; | ||
|
|
||
import com.fasterxml.jackson.annotation.JsonAutoDetect; | import org.cloudfoundry.identity.uaa.oauth.jwk.JsonWebKeySet; | ||
|
|
||
import java.util.List; | import java.util.List; | ||
|
|
||
@Deprecated | |||
/** | /** | ||
* Created by pivotal on 11/18/15. | * Use {@link JsonWebKeySet} | ||
*/ | */ | ||
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE) | public class VerificationKeysListResponse extends JsonWebKeySet<VerificationKeyResponse> { | ||
public class VerificationKeysListResponse { | public VerificationKeysListResponse(List<VerificationKeyResponse> keys) { | ||
private List<VerificationKeyResponse> keys; | super(keys); | ||
|
|||
public List<VerificationKeyResponse> getKeys() { | |||
return keys; | |||
} | |||
|
|||
public void setKeys(List<VerificationKeyResponse> keys) { | |||
this.keys = keys; | |||
} | } | ||
} | } |
Oops, something went wrong.