Interface SignatureBegin
- All Known Implementing Classes:
JWS.Signature
public interface SignatureBegin
Defines the starting point for generating JSON Web Signatures.
- Author:
- Christof Reichardt
-
Method Summary
Modifier and TypeMethodDescriptionThe givenKeyPairwill be used to build aJsonWebKeyPair.The givenSecretKeywill be used to build aJsonWebSecretKey.webkey(JsonWebKeyPair jsonWebKeyPair) Notes the givenJsonWebKeyPair.webkey(JsonWebSecretKey jsonWebSecretKey) Notes the givenJsonWebSecretKey.
-
Method Details
-
webkey
Notes the givenJsonWebKeyPair. The private part will be used for generating the actual signature. The public part will be exposed within the JOSE header if you don't chose to explicitly hand over a JOSE header yourself within the next step.- Parameters:
jsonWebKeyPair- the givenJsonWebKeyPair.- Returns:
- the next stop within the workflow of the Fluent API regarding the generation of signatures.
-
webkey
Notes the givenJsonWebSecretKey. The wrapped secret key will be used for generating the signature.- Parameters:
jsonWebSecretKey- the givenJsonWebSecretKey.- Returns:
- the next stop within the workflow of the Fluent API regarding the generation of signatures.
-
key
The givenKeyPairwill be used to build aJsonWebKeyPair. The private part will be used for generating the actual signature. The public part will be exposed within the JOSE header if you don't chose to explicitly hand over a JOSE header yourself within the next step.- Parameters:
keyPair- the givenKeyPair.- Returns:
- the next stop within the workflow of the Fluent API regarding the generation of signatures.
-
key
The givenSecretKeywill be used to build aJsonWebSecretKey.- Parameters:
secretKey- the givenSecretKey.- Returns:
- the next stop within the workflow of the Fluent API regarding the generation of signatures.
-