Skip to content

Commit

Permalink
Merge pull request #159 from SasanLabs/Fix1
Browse files Browse the repository at this point in the history
Adding Path Traversal Vulnerability
  • Loading branch information
preetkaran20 authored Jul 26, 2020
2 parents cebbf50 + 6d758ce commit f97473a
Show file tree
Hide file tree
Showing 23 changed files with 647 additions and 439 deletions.
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
package org.sasanlabs.service.vulnerability.jwt.bean;
package org.sasanlabs.service.vulnerability.bean;

import com.fasterxml.jackson.annotation.JsonProperty;

/** @author KSASAN preetkaran20 */
public class JWTResponseBean {
public class GenericVulnerabilityResponseBean<T> {

@JsonProperty("JWTToken")
private String jwtToken;
@JsonProperty("content")
private T content;

@JsonProperty("isValid")
private boolean isValid;

public String getJwtToken() {
return jwtToken;
public GenericVulnerabilityResponseBean() {}

public GenericVulnerabilityResponseBean(T content, boolean isValid) {
this.content = content;
this.isValid = isValid;
}

public void setJwtToken(String jwtToken) {
this.jwtToken = jwtToken;
public T getContent() {
return content;
}

/* Here getter and setters are not as per the standard
/* Here getter is not as per the standard
* because of Jackson library issue.
* <a href="https://stackoverflow.com/questions/32270422/jackson-renames-primitive-boolean-field-by-removing-is">Issue</a>
*/
public boolean getIsValid() {
return isValid;
}

public void setIsValid(boolean isValid) {
this.isValid = isValid;
}
}

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit f97473a

Please sign in to comment.