Package com.adobe.granite.oauth.jwt
Interface JwsBuilderFactory
- 
public interface JwsBuilderFactoryCreate an instance of aJwsBuilder- See Also:
 JwsBuilder
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JwsBuildergetInstance(java.lang.String algorithm)Get an instance of a JwsBuilder.JwsBuildergetInstance(java.lang.String algorithm, java.security.Key signingKey)Get an instance of a JwsBuilder 
 - 
 
- 
- 
Method Detail
- 
getInstance
JwsBuilder getInstance(java.lang.String algorithm, java.security.Key signingKey)
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
JwsBuilder getInstance(java.lang.String algorithm)
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:
 java.lang.UnsupportedOperationException- if it doesn't exist a system key for the given algorithm
 
 - 
 
 -