Skip to content

Commit

Permalink
Fixed formatting. (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Jul 10, 2018
1 parent 71e60ef commit 55ee18b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/main/java/com/bunq/sdk/model/core/Installation.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ public static BunqResponse<Installation> create(ApiContext apiContext,
String publicKeyClientString) {
ApiClient apiClient = new ApiClient(apiContext);
byte[] requestBytes = generateRequestBodyBytes(publicKeyClientString);
BunqResponseRaw responseRaw = apiClient.post(ENDPOINT_URL_POST, requestBytes, new HashMap<String, String>());
BunqResponseRaw responseRaw = apiClient.post(
ENDPOINT_URL_POST,
requestBytes,
new HashMap<String, String>()
);

return fromJsonArrayNested(Installation.class, responseRaw);
}
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/com/bunq/sdk/model/core/SessionServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ public SessionServer(Id id, SessionToken sessionToken, UserPerson userPerson) {
public static BunqResponse<SessionServer> create(ApiContext apiContext) {
ApiClient apiClient = new ApiClient(apiContext);
byte[] requestBytes = generateRequestBodyBytes(apiContext.getApiKey());
BunqResponseRaw responseRaw = apiClient.post(ENDPOINT_URL_POST, requestBytes, new HashMap<String, String>());
BunqResponseRaw responseRaw = apiClient.post(
ENDPOINT_URL_POST,
requestBytes,
new HashMap<String, String>()
);

return fromJsonArrayNested(SessionServer.class, responseRaw);
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/bunq/sdk/security/SecurityUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,9 @@ public static void validateResponseSignature(
HEADER_SERVER_SIGNATURE,
response.header(HEADER_SERVER_SIGNATURE)
);
byte[] serverSignatureDecoded = DatatypeConverter.parseBase64Binary(headerServerSignature.getValue());
byte[] serverSignatureDecoded = DatatypeConverter.parseBase64Binary(
headerServerSignature.getValue()
);
verifyDataSigned(signature, keyPublicServer, responseBytes, serverSignatureDecoded);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/bunq/sdk/util/BunqUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.Map;

public class BunqUtil {
public static <T> T getValueFromMapOrDefault(Map<String, T> map, String key ,T defaultValue) {
public static <T> T getValueFromMapOrDefault(Map<String, T> map, String key, T defaultValue) {
if (map.containsKey(key)) {
return map.get(key);
} else {
Expand Down

0 comments on commit 55ee18b

Please sign in to comment.