public abstract class AbstractHttpClient extends Object
Constructor and Description |
---|
AbstractHttpClient(String url,
PrivateKey privateKey,
PublicKey publicKey,
PublicKey remotePublicKey) |
Modifier and Type | Method and Description |
---|---|
abstract void |
abort() |
abstract boolean |
canAbort() |
abstract void |
close() |
protected void |
disableVerification() |
abstract byte[] |
executeHttpRequest(String uri,
LinkedHashMap<String,byte[]> entity,
boolean verifyResponse) |
org.kaaproject.kaa.common.endpoint.security.MessageEncoderDecoder |
getEncoderDecoder() |
protected byte[] |
verifyResponse(byte[] body,
byte[] signature) |
protected final String url
public AbstractHttpClient(String url, PrivateKey privateKey, PublicKey publicKey, PublicKey remotePublicKey)
protected void disableVerification()
protected byte[] verifyResponse(byte[] body, byte[] signature) throws GeneralSecurityException
GeneralSecurityException
public org.kaaproject.kaa.common.endpoint.security.MessageEncoderDecoder getEncoderDecoder()
public abstract byte[] executeHttpRequest(String uri, LinkedHashMap<String,byte[]> entity, boolean verifyResponse) throws Exception
Exception
public abstract void close() throws IOException
IOException
public abstract void abort()
public abstract boolean canAbort()
Copyright © 2015. All rights reserved.