public class RsaSHA256Signer extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
sign(PrivateKey privateKey,
com.google.api.client.json.JsonFactory jsonFactory,
JsonWebSignature.Header header,
JsonWebToken.Payload payload)
Signs a given JWS header and payload based on the given private key.
|
public static String sign(PrivateKey privateKey, com.google.api.client.json.JsonFactory jsonFactory, JsonWebSignature.Header header, JsonWebToken.Payload payload) throws GeneralSecurityException, IOException
Upgrade warning: this method now throws an IOException. In prior version 1.11 it did
not throw IOException.
privateKey - private keyjsonFactory - JSON factoryheader - JWS headerpayload - JWS payloadGeneralSecurityExceptionIOExceptionCopyright © 2011-2012 Google. All Rights Reserved.