Token metamodel implemented

This commit is contained in:
2016-10-17 16:28:34 +02:00
parent e99809cd46
commit 53a459eda1
5 changed files with 541 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.stklcode.jvault.connector.exception.*;
import de.stklcode.jvault.connector.model.AuthBackend;
import de.stklcode.jvault.connector.model.Token;
import de.stklcode.jvault.connector.model.response.*;
import de.stklcode.jvault.connector.model.response.embedded.AuthMethod;
import org.apache.http.HttpResponse;
@@ -338,6 +339,12 @@ public class HTTPVaultConnector implements VaultConnector {
return null;
}
@Override
public TokenResponse createToken(final Token token) throws VaultConnectorException {
/* TODO */
return null;
}
/**
* Execute HTTP request using POST method.