com.googlecode.jinahya.twitter.xauth
Class BouncyCastleAuthenticator

java.lang.Object
  extended by com.googlecode.jinahya.twitter.xauth.BouncyCastleAuthenticator
All Implemented Interfaces:
Authenticator

public class BouncyCastleAuthenticator
extends Object
implements Authenticator

Author:
Jin Kwon

Constructor Summary
BouncyCastleAuthenticator()
           
 
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
 

Constructor Detail

BouncyCastleAuthenticator

public BouncyCastleAuthenticator()
Method Detail

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 - key
input - input
Returns:
signature
Throws:
Exception - if any error occurs.


Copyright © 2011. All Rights Reserved.