com.googlecode.jinahya.twitter.xauth
Class BouncyCastleAuthenticator
java.lang.Object
com.googlecode.jinahya.twitter.xauth.BouncyCastleAuthenticator
- All Implemented Interfaces:
- Authenticator
public class BouncyCastleAuthenticator
- extends Object
- implements Authenticator
- Author:
- Jin Kwon
|
Method Summary |
byte[] |
authenticate(byte[] key,
byte[] input)
Generates HMAC-SAH1 signature with given key and
input. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BouncyCastleAuthenticator
public BouncyCastleAuthenticator()
authenticate
public byte[] authenticate(byte[] key,
byte[] input)
throws Exception
- Description copied from interface:
Authenticator
- Generates HMAC-SAH1 signature with given
key and
input.
- Specified by:
authenticate in interface Authenticator
- Parameters:
key - keyinput - input
- Returns:
- signature
- Throws:
Exception - if any error occurs.
Copyright © 2011. All Rights Reserved.