Class SealResponse
- java.lang.Object
-
- de.stklcode.jvault.connector.model.response.SealResponse
-
- All Implemented Interfaces:
VaultResponse
public final class SealResponse extends Object implements VaultResponse
Vault response for seal status or unseal request.- Since:
- 0.1
- Author:
- Stefan Kalscheuer
-
-
Constructor Summary
Constructors Constructor Description SealResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClusterId()
String
getClusterName()
String
getNonce()
Integer
getNumberOfShares()
Integer
getProgress()
Integer
getThreshold()
String
getType()
String
getVersion()
boolean
isInitialized()
boolean
isSealed()
-
-
-
Method Detail
-
getType
public String getType()
- Returns:
- Seal type.
- Since:
- 0.8
-
isSealed
public boolean isSealed()
- Returns:
- Seal status
-
isInitialized
public boolean isInitialized()
- Returns:
- Vault initialization status (since Vault 0.11.2).
- Since:
- 0.8
-
getThreshold
public Integer getThreshold()
- Returns:
- Required threshold of secret shares
-
getNumberOfShares
public Integer getNumberOfShares()
- Returns:
- Number of secret shares
-
getProgress
public Integer getProgress()
- Returns:
- Current unseal progress (remaining required shares)
-
getVersion
public String getVersion()
- Returns:
- Vault version.
- Since:
- 0.8
-
getNonce
public String getNonce()
- Returns:
- A random nonce.
- Since:
- 0.8
-
getClusterName
public String getClusterName()
- Returns:
- Vault cluster name (only if unsealed).
- Since:
- 0.8
-
getClusterId
public String getClusterId()
- Returns:
- Vault cluster ID (only if unsealed).
- Since:
- 0.8
-
-