com.google.api.client.auth.jsontoken
Class RsaSHA256Signer

java.lang.Object
  extended by com.google.api.client.auth.jsontoken.RsaSHA256Signer

public class RsaSHA256Signer
extends Object

Signs a JSON Web Signature (JWS) using RSA and SHA-256.

Since:
1.7
Author:
Yaniv Inbar

Method Summary
static String sign(PrivateKey privateKey, JsonFactory jsonFactory, JsonWebSignature.Header header, JsonWebToken.Payload payload)
          Signs a given JWS header and payload based on the given private key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sign

public static String sign(PrivateKey privateKey,
                          JsonFactory jsonFactory,
                          JsonWebSignature.Header header,
                          JsonWebToken.Payload payload)
                   throws GeneralSecurityException
Signs a given JWS header and payload based on the given private key.

Parameters:
privateKey - private key
jsonFactory - JSON factory
header - JWS header
payload - JWS payload
Returns:
signed JWS string
Throws:
GeneralSecurityException


Copyright © 2011-2012 Google. All Rights Reserved.