OAuth 2.0 Cookbook: Protect your web applications using Spring Security by Adolfo Eloy Nascimento
Author:Adolfo Eloy Nascimento [Nascimento, Adolfo Eloy]
Language: eng
Format: azw3
Tags: COM053000 - COMPUTERS / Security / General, COM051440 - COMPUTERS / Software Development and Engineering / Tools, COM061000 - COMPUTERS / Client-Server Computing
Publisher: Packt Publishing
Published: 2017-10-18T04:00:00+00:00
private String softwareId;
private String tokenEndpointAuthMethod;
private Set<String> responseTypes = new HashSet<>();
private String clientName;
private String clientUri;
private long clientSecretExpiresAt;
Create the following setters (the getters for these fields should be ordinary getters that just return their respective attribute values):
public void setSoftwareId(String softwareId) {
this.softwareId = softwareId;
additionalInformation.put("software_id", softwareId);
}
public void setTokenEndpointAuthMethod(String tokenEndpointAuthMethod) {
this.tokenEndpointAuthMethod = tokenEndpointAuthMethod;
additionalInformation.put("token_endpoint_auth_method", tokenEndpointAuthMethod);
}
public void setResponseTypes(Set<String> responseTypes) {
this.responseTypes = responseTypes;
additionalInformation.put("response_types", getResponseTypes());
}
public void setClientName(String clientName) {
this.clientName = clientName;
additionalInformation.put("client_name", clientName);
}
public void setClientUri(String clientUri) {
this.clientUri = clientUri;
additionalInformation.put("client_uri", clientUri);
}
public void setClientSecretExpiresAt(long clientSecretExpiresAt) {
this.clientSecretExpiresAt = clientSecretExpiresAt;
additionalInformation.put("client_secret_expires_at",
Long.toString(clientSecretExpiresAt));
}
Create getters and setters for the remaining attributes.
Make sure the following attribute accessors and modifiers are the same for your DynamicClientDetails implementation:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7782)
Grails in Action by Glen Smith Peter Ledbrook(7696)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(6565)
Azure Containers Explained by Wesley Haakman & Richard Hooper(6554)
Running Windows Containers on AWS by Marcio Morales(6083)
Kotlin in Action by Dmitry Jemerov(5066)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(4916)
Combating Crime on the Dark Web by Nearchos Nearchou(4498)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4414)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4337)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4172)
The Age of Surveillance Capitalism by Shoshana Zuboff(3950)
Python for Security and Networking - Third Edition by José Manuel Ortega(3740)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3509)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3407)
Mastering Python for Networking and Security by José Manuel Ortega(3344)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3330)
Blockchain Basics by Daniel Drescher(3294)
Learn Wireshark by Lisa Bock(3261)
