This commit is contained in:
parent
f918f85d20
commit
1c31b7a5fe
@ -19,8 +19,8 @@ package de.stklcode.jvault.connector.exception;
|
|||||||
/**
|
/**
|
||||||
* Exception thrown trying to do a request without any authorization handles.
|
* Exception thrown trying to do a request without any authorization handles.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
public class AuthorizationRequiredException extends VaultConnectorException {
|
public class AuthorizationRequiredException extends VaultConnectorException {
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,8 @@ package de.stklcode.jvault.connector.exception;
|
|||||||
/**
|
/**
|
||||||
* Exception thrown when trying to send malformed request.
|
* Exception thrown when trying to send malformed request.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
public class InvalidRequestException extends VaultConnectorException {
|
public class InvalidRequestException extends VaultConnectorException {
|
||||||
/**
|
/**
|
||||||
|
@ -19,8 +19,8 @@ package de.stklcode.jvault.connector.exception;
|
|||||||
/**
|
/**
|
||||||
* Exception thrown when trying to access a path the current user/token does not have permission to access.
|
* Exception thrown when trying to access a path the current user/token does not have permission to access.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
public class PermissionDeniedException extends VaultConnectorException {
|
public class PermissionDeniedException extends VaultConnectorException {
|
||||||
/**
|
/**
|
||||||
|
@ -19,8 +19,8 @@ package de.stklcode.jvault.connector.exception;
|
|||||||
/**
|
/**
|
||||||
* Exception thrown on errors with TLS connection.
|
* Exception thrown on errors with TLS connection.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.4.0
|
* @since 0.4.0
|
||||||
*/
|
*/
|
||||||
public class TlsException extends VaultConnectorException {
|
public class TlsException extends VaultConnectorException {
|
||||||
/**
|
/**
|
||||||
|
@ -19,8 +19,8 @@ package de.stklcode.jvault.connector.exception;
|
|||||||
/**
|
/**
|
||||||
* Abstract Exception class for Vault Connector internal exceptions.
|
* Abstract Exception class for Vault Connector internal exceptions.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
public abstract class VaultConnectorException extends Exception {
|
public abstract class VaultConnectorException extends Exception {
|
||||||
/**
|
/**
|
||||||
|
@ -28,8 +28,8 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* Authentication method response.
|
* Authentication method response.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class AuthMethodsResponse extends VaultDataResponse {
|
public final class AuthMethodsResponse extends VaultDataResponse {
|
||||||
|
@ -21,8 +21,8 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
|||||||
/**
|
/**
|
||||||
* Vault response from credentials lookup. Simple wrapper for data objects containing username and password fields.
|
* Vault response from credentials lookup. Simple wrapper for data objects containing username and password fields.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.5.0
|
* @since 0.5.0
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class CredentialsResponse extends SecretResponse {
|
public final class CredentialsResponse extends SecretResponse {
|
||||||
|
@ -24,8 +24,8 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* Vault response in case of errors.
|
* Vault response in case of errors.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class ErrorResponse implements VaultResponse {
|
public final class ErrorResponse implements VaultResponse {
|
||||||
|
@ -22,8 +22,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
/**
|
/**
|
||||||
* Vault response for health query.
|
* Vault response for health query.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.7.0
|
* @since 0.7.0
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class HealthResponse implements VaultResponse {
|
public final class HealthResponse implements VaultResponse {
|
||||||
|
@ -22,8 +22,8 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
|||||||
/**
|
/**
|
||||||
* Vault response for help request.
|
* Vault response for help request.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class HelpResponse implements VaultResponse {
|
public final class HelpResponse implements VaultResponse {
|
||||||
|
@ -23,8 +23,8 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* Simple Vault data response.
|
* Simple Vault data response.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.4.0
|
* @since 0.4.0
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class RawDataResponse extends VaultDataResponse {
|
public final class RawDataResponse extends VaultDataResponse {
|
||||||
|
@ -19,8 +19,8 @@ package de.stklcode.jvault.connector.model.response;
|
|||||||
/**
|
/**
|
||||||
* Marker interface for responses from Vault backend.
|
* Marker interface for responses from Vault backend.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
public interface VaultResponse {
|
public interface VaultResponse {
|
||||||
}
|
}
|
||||||
|
@ -25,8 +25,8 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* Embedded authorization information inside Vault response.
|
* Embedded authorization information inside Vault response.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class AuthData {
|
public final class AuthData {
|
||||||
|
@ -26,8 +26,8 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* Embedded authentication method response.
|
* Embedded authentication method response.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.1
|
* @since 0.1
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class AuthMethod {
|
public final class AuthMethod {
|
||||||
|
@ -27,8 +27,8 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* Embedded metadata for Key-Value v2 secrets.
|
* Embedded metadata for Key-Value v2 secrets.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.8
|
* @since 0.8
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class SecretMetadata {
|
public final class SecretMetadata {
|
||||||
|
@ -26,8 +26,8 @@ import java.time.format.DateTimeParseException;
|
|||||||
/**
|
/**
|
||||||
* Embedded metadata for a single Key-Value v2 version.
|
* Embedded metadata for a single Key-Value v2 version.
|
||||||
*
|
*
|
||||||
* @author Stefan Kalscheuer
|
* @author Stefan Kalscheuer
|
||||||
* @since 0.8
|
* @since 0.8
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public final class VersionMetadata {
|
public final class VersionMetadata {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user