add lombok to clean codebase
This commit is contained in:
@@ -32,5 +32,12 @@
|
||||
<classifier>jakarta</classifier>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- Lombok -->
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
@@ -16,12 +16,16 @@ import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.GenerationType;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* The Class JwtKey.
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "jwt_keys")
|
||||
@Getter
|
||||
@Setter
|
||||
public class JwtKey {
|
||||
|
||||
@Id
|
||||
@@ -49,202 +53,4 @@ public class JwtKey {
|
||||
@Column(name = "expires", nullable = false)
|
||||
private Instant expires;
|
||||
|
||||
/**
|
||||
* Gets the id.
|
||||
*
|
||||
* @return the id
|
||||
*/
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the id.
|
||||
*
|
||||
* @param id the new id
|
||||
*/
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name.
|
||||
*
|
||||
* @return the name
|
||||
*/
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name.
|
||||
*
|
||||
* @param name the new name
|
||||
*/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the key ID.
|
||||
*
|
||||
* @return the key ID
|
||||
*/
|
||||
public String getKeyID() {
|
||||
return keyID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the key ID.
|
||||
*
|
||||
* @param keyID the new key ID
|
||||
*/
|
||||
public void setKeyID(String keyID) {
|
||||
this.keyID = keyID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the data.
|
||||
*
|
||||
* @return the data
|
||||
*/
|
||||
public String getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the data.
|
||||
*
|
||||
* @param data the new data
|
||||
*/
|
||||
public void setData(String data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the key type.
|
||||
*
|
||||
* @return the key type
|
||||
*/
|
||||
public String getKeyType() {
|
||||
return keyType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the key type.
|
||||
*
|
||||
* @param keyType the new key type
|
||||
*/
|
||||
public void setKeyType(String keyType) {
|
||||
this.keyType = keyType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the key parameter.
|
||||
*
|
||||
* @return the key parameter
|
||||
*/
|
||||
public String getKeyParameter() {
|
||||
return keyParameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the key parameter.
|
||||
*
|
||||
* @param keyParameter the new key parameter
|
||||
*/
|
||||
public void setKeyParameter(String keyParameter) {
|
||||
this.keyParameter = keyParameter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the key use.
|
||||
*
|
||||
* @return the key use
|
||||
*/
|
||||
public String getKeyUse() {
|
||||
return keyUse;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the key use.
|
||||
*
|
||||
* @param keyUse the new key use
|
||||
*/
|
||||
public void setKeyUse(String keyUse) {
|
||||
this.keyUse = keyUse;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the jws algorithm.
|
||||
*
|
||||
* @return the jws algorithm
|
||||
*/
|
||||
public String getJwsAlgorithm() {
|
||||
return jwsAlgorithm;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the jws algorithm.
|
||||
*
|
||||
* @param jwsAlgorithm the new jws algorithm
|
||||
*/
|
||||
public void setJwsAlgorithm(String jwsAlgorithm) {
|
||||
this.jwsAlgorithm = jwsAlgorithm;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the lifetime.
|
||||
*
|
||||
* @return the lifetime
|
||||
*/
|
||||
public Long getLifetime() {
|
||||
return lifetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the lifetime.
|
||||
*
|
||||
* @param lifetime the new lifetime
|
||||
*/
|
||||
public void setLifetime(Long lifetime) {
|
||||
this.lifetime = lifetime;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the created.
|
||||
*
|
||||
* @return the created
|
||||
*/
|
||||
public Instant getCreated() {
|
||||
return created;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the created.
|
||||
*
|
||||
* @param created the new created
|
||||
*/
|
||||
public void setCreated(Instant created) {
|
||||
this.created = created;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the expires.
|
||||
*
|
||||
* @return the expires
|
||||
*/
|
||||
public Instant getExpires() {
|
||||
return expires;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the expires.
|
||||
*
|
||||
* @param expires the new expires
|
||||
*/
|
||||
public void setExpires(Instant expires) {
|
||||
this.expires = expires;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user