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 intCYPHER_PARTstatic intINFO_ELEMENTSstatic StringINFO_SEPARATORstatic intMAGIC_PARTstatic StringVAULT_MAGICstatic StringVAULT_VERSIONstatic intVERSION_PART
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CypherInterfacegetCypher()StringgetVaultVersion()booleanisEncryptedVault()booleanisValidVault()static StringvaultInfoForCypher(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()
-
-