Package com.adobe.granite.oauth.jwt
Interface JwsBuilderFactory
public interface JwsBuilderFactory
Create an instance of a
JwsBuilder- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetInstance(String algorithm) Get an instance of a JwsBuilder.getInstance(String algorithm, Key signingKey) Get an instance of a JwsBuilder
-
Method Details
-
getInstance
Get an instance of a JwsBuilder- Parameters:
algorithm- The algorithm used to sign the JWSkey- The key used to sign the JWS. This must be @link javax.crypto.spec.SecretKeySpec in case of symmetric algorithm and
-
getInstance
Get an instance of a JwsBuilder. The JWS will be signed using a system key compatible with the given algorithm (if available)- Parameters:
algorithm- the algorithm used to sign the JWS- Returns:
- JwsBuilder
- Throws:
UnsupportedOperationException- if it doesn't exist a system key for the given algorithm
-