- Notifications
You must be signed in to change notification settings - Fork1
Caslabs Client - Account Settings#6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
7 commits Select commitHold shift + click to select a range
9e550e4 UpdateAuthorizationSettingsRequest model
d3ed0f1 fix dependency resolution
114f9d9 add castlabs client functionality
d88c039 listAccounts functionality
bae77b7 fix list accounts tests
7fff779 new line
c93cff1 fix features after local testing
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
15 changes: 3 additions & 12 deletionspom.xml
This file contains hidden or 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
135 changes: 132 additions & 3 deletionssrc/main/java/com/brightcove/castlabs/client/CastlabsClient.java
This file contains hidden or 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
36 changes: 36 additions & 0 deletionssrc/main/java/com/brightcove/castlabs/client/request/FairplayRequest.java
This file contains hidden or 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 | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| package com.brightcove.castlabs.client.request; | ||
| public class FairplayRequest { | ||
| private String providerCertificate; | ||
| private String providerPrivateKey; | ||
| private String applicationSecretKey; | ||
| public String getProviderCertificate() { | ||
| return providerCertificate; | ||
| } | ||
| public void setProviderCertificate(String providerCertificate) { | ||
| this.providerCertificate = providerCertificate; | ||
| } | ||
| public String getProviderPrivateKey() { return providerPrivateKey; } | ||
| public void setProviderPrivateKey(String providerPrivateKey) { | ||
| this.providerPrivateKey = providerPrivateKey; | ||
| } | ||
| public String getApplicationSecretKey() { return applicationSecretKey; } | ||
| public void setApplicationSecretKey(String applicationSecretKey) { this.applicationSecretKey = applicationSecretKey; } | ||
| @Override | ||
| public String toString() { | ||
| return "FairplayRequest{" + | ||
| "providerCertificate='" + providerCertificate + '\'' + | ||
| ", providerPrivateKey='" + providerPrivateKey + '\'' + | ||
| ", applicationSecretKey='" + applicationSecretKey + '\'' + | ||
| '}'; | ||
| } | ||
| } |
40 changes: 40 additions & 0 deletionssrc/main/java/com/brightcove/castlabs/client/request/SharedSecretRequest.java
This file contains hidden or 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 | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| package com.brightcove.castlabs.client.request; | ||
| public class SharedSecretRequest { | ||
| private Boolean enabled; | ||
| private String description; | ||
| private String secret; | ||
| public Boolean getEnabled() { | ||
| return enabled; | ||
| } | ||
| public void setEnabled(Boolean enabled) { | ||
| this.enabled = enabled; | ||
| } | ||
| public String getDescription() { | ||
| return description; | ||
| } | ||
| public void setDescription(String description) { | ||
| this.description = description; | ||
| } | ||
| public String getSecret() { return secret; } | ||
| public void setSecret(String secret) { | ||
| this.secret = secret; | ||
| } | ||
| @Override | ||
| public String toString() { | ||
| return "SharedSecretRequest{" + | ||
| "enabled='" + enabled + '\'' + | ||
| ", description='" + description + '\'' + | ||
| ", secret='" + secret + '\'' + | ||
| '}'; | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletionssrc/main/java/com/brightcove/castlabs/client/request/UpdateAuthorizationSettingsRequest.java
This file contains hidden or 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 | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| package com.brightcove.castlabs.client.request; | ||
| public class UpdateAuthorizationSettingsRequest { | ||
| private String mode; | ||
| private String callbackUrl; | ||
| public String getMode() { | ||
| return mode; | ||
| } | ||
| public void setMode(String mode) { this.mode = mode; } | ||
| public String getCallbackUrl() { return callbackUrl; } | ||
| public void setCallbackUrl(String callbackUrl) { | ||
| this.callbackUrl = callbackUrl; | ||
| } | ||
| @Override | ||
| public String toString() { | ||
| return "UpdateAuthorizationSettingsRequest{" + | ||
| "mode='" + mode + '\'' + | ||
| ", callbackUrl='" + callbackUrl + '\'' + | ||
| '}'; | ||
| } | ||
| } |
81 changes: 81 additions & 0 deletionssrc/main/java/com/brightcove/castlabs/client/response/Account.java
This file contains hidden or 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 | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| package com.brightcove.castlabs.client.response; | ||
| import java.util.List; | ||
| public class Account { | ||
| private String id; | ||
| private Boolean enabled; | ||
| private Boolean api; | ||
| private String login; | ||
| private String firstName; | ||
| private String lastName; | ||
| private List<String> permissions; | ||
| public String getID() { | ||
| return id; | ||
| } | ||
| public void setID(String id) { | ||
| this.id = id; | ||
| } | ||
| public Boolean getEnabled() { | ||
| return enabled; | ||
| } | ||
| public void setEnabled(Boolean enabled) { | ||
| this.enabled = enabled; | ||
| } | ||
| public Boolean getAPI() { | ||
| return api; | ||
| } | ||
| public void setAPI(Boolean api) { | ||
| this.api = api; | ||
| } | ||
| public String getLogin() { | ||
| return login; | ||
| } | ||
| public void setLogin(String login) { | ||
| this.login = login; | ||
| } | ||
| public String getFirstName() { return firstName; } | ||
| public void setFirstName(String firstName) { | ||
| this.firstName = firstName; | ||
| } | ||
| public String getLastName() { | ||
| return lastName; | ||
| } | ||
| public void setLastName(String lastName) { | ||
| this.lastName = lastName; | ||
| } | ||
| public List<String> getPermissions() { | ||
| return permissions; | ||
| } | ||
| public void setPermissions(List<String> permissions) { | ||
| this.permissions = permissions; | ||
| } | ||
| @Override | ||
| public String toString() { | ||
| return "Account{" + | ||
| "id='" + id + '\'' + | ||
| ", enabled='" + enabled + '\'' + | ||
| ", api='" + api + '\'' + | ||
| ", login='" + login + '\'' + | ||
| ", firstName='" + firstName + '\'' + | ||
| ", lastName='" + lastName + '\'' + | ||
| ", permissions='" + permissions + '\'' + | ||
| '}'; | ||
| } | ||
| } |
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.