public abstract class SshOAuthSignatureMethod extends Object implements com.sun.jersey.oauth.signature.OAuthSignatureMethod
OAuthSignatureMethod implementation that takes care of the common actions| Modifier and Type | Class and Description |
|---|---|
static class |
SshOAuthSignatureMethod.InvalidSshSecretException |
| Constructor and Description |
|---|
SshOAuthSignatureMethod() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract PrivateKey |
getPrivateKey(String keyString) |
protected abstract PublicKey |
getPublicKey(String keyString) |
protected abstract String |
getSignatureAlgorithm() |
abstract String |
name() |
String |
sign(String elements,
com.sun.jersey.oauth.signature.OAuthSecrets secrets) |
boolean |
verify(String elements,
com.sun.jersey.oauth.signature.OAuthSecrets secrets,
String signatureStr) |
public abstract String name()
name in interface com.sun.jersey.oauth.signature.OAuthSignatureMethodprotected abstract String getSignatureAlgorithm()
protected abstract PrivateKey getPrivateKey(String keyString) throws InvalidKeyException
InvalidKeyExceptionprotected abstract PublicKey getPublicKey(String keyString) throws InvalidKeyException
InvalidKeyExceptionpublic String sign(String elements, com.sun.jersey.oauth.signature.OAuthSecrets secrets) throws com.sun.jersey.oauth.signature.InvalidSecretException
sign in interface com.sun.jersey.oauth.signature.OAuthSignatureMethodcom.sun.jersey.oauth.signature.InvalidSecretExceptionpublic boolean verify(String elements, com.sun.jersey.oauth.signature.OAuthSecrets secrets, String signatureStr) throws com.sun.jersey.oauth.signature.InvalidSecretException
verify in interface com.sun.jersey.oauth.signature.OAuthSignatureMethodcom.sun.jersey.oauth.signature.InvalidSecretExceptionCopyright © 2014 hobbiton bvba. All Rights Reserved.