Skip to content

Commit

Permalink
colorize java code in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kekru committed Feb 23, 2021
1 parent ee1bb66 commit 24a3d3f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ objects to and from Ansible Vaults. This gives you very convenient ways of handl
Java.

#### Create an Ansible vault from a Java object
```

```java
import net.wedjaa.ansible.vault.Manager;

public void createVault(Object someObject, String vaultPassword)
Expand All @@ -32,7 +33,8 @@ public void createVault(Object someObject, String vaultPassword)
```

#### Deserialize a vault into a Java Object
```

```java
import net.wedjaa.ansible.vault.Manager;

public void readVault(String vault, Class theObjectClass, String vaultPassword)
Expand All @@ -53,7 +55,7 @@ public void readVault(String vault, Class theObjectClass, String vaultPassword)

#### Create a vault from a buffer or a stream

```
```java
import net.wedjaa.ansible.vault.crypto;

public void encryptVault(String data, String vaultPassword)
Expand All @@ -73,7 +75,7 @@ public void encryptVault(String data, String vaultPassword)

#### Read a vault from a buffer or a stream

```
```java
import net.wedjaa.ansible.vault.crypto;

public void decryptVault(String vault, String vaultPassword)
Expand Down

0 comments on commit 24a3d3f

Please sign in to comment.