Class VaultInfo
- java.lang.Object
-
- net.wedjaa.ansible.vault.crypto.data.VaultInfo
-
public class VaultInfo extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
CYPHER_PART
static int
INFO_ELEMENTS
static String
INFO_SEPARATOR
static int
MAGIC_PART
static String
VAULT_MAGIC
static String
VAULT_VERSION
static int
VERSION_PART
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CypherInterface
getCypher()
String
getVaultVersion()
boolean
isEncryptedVault()
boolean
isValidVault()
static String
vaultInfoForCypher(String vaultCypher)
-
-
-
Field Detail
-
INFO_SEPARATOR
public static final String INFO_SEPARATOR
- See Also:
- Constant Field Values
-
INFO_ELEMENTS
public static final int INFO_ELEMENTS
- See Also:
- Constant Field Values
-
MAGIC_PART
public static final int MAGIC_PART
- See Also:
- Constant Field Values
-
VERSION_PART
public static final int VERSION_PART
- See Also:
- Constant Field Values
-
CYPHER_PART
public static final int CYPHER_PART
- See Also:
- Constant Field Values
-
VAULT_MAGIC
public static final String VAULT_MAGIC
- See Also:
- Constant Field Values
-
VAULT_VERSION
public static final String VAULT_VERSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VaultInfo
public VaultInfo(String infoLine)
-
-
Method Detail
-
isEncryptedVault
public boolean isEncryptedVault()
-
getCypher
public CypherInterface getCypher()
-
getVaultVersion
public String getVaultVersion()
-
isValidVault
public boolean isValidVault()
-
-