public interface JwsBuilderFactory
JwsBuilder
JwsBuilder
Modifier and Type | Method and Description |
---|---|
JwsBuilder |
getInstance(java.lang.String algorithm)
Get an instance of a JwsBuilder.
|
JwsBuilder |
getInstance(java.lang.String algorithm,
java.security.Key signingKey)
Get an instance of a JwsBuilder
|
JwsBuilder getInstance(java.lang.String algorithm, java.security.Key signingKey)
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 andjava.lang.IllegalArgumentException
- if the given algorithm is not compatible with the given keyjava.lang.UnsupportedOperationException
- if the given algorithm is not supportedJwsBuilder getInstance(java.lang.String algorithm)
algorithm
- the algorithm used to sign the JWSjava.lang.UnsupportedOperationException
- if it doesn't exist a system key for the given algorithm"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"