public class UrlSigner
extends java.lang.Object
Constructor and Description |
---|
UrlSigner(java.lang.String keyString) |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args) |
java.lang.String[] |
signRequest(java.lang.String path,
java.lang.String query) |
public UrlSigner(java.lang.String keyString) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args) throws java.io.IOException, java.security.InvalidKeyException, java.security.NoSuchAlgorithmException, java.net.URISyntaxException
java.io.IOException
java.security.InvalidKeyException
java.security.NoSuchAlgorithmException
java.net.URISyntaxException
public java.lang.String[] signRequest(java.lang.String path, java.lang.String query) throws java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.io.UnsupportedEncodingException, java.net.URISyntaxException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.io.UnsupportedEncodingException
java.net.URISyntaxException