public interface Jose
Modifier and Type | Method and Description |
---|---|
String |
decrypt(String jwe)
Decrypt the encrypted data in the JWE compact or JSON (optional) format.
|
DecryptionOutput |
decryption(String jwe)
Decrypt the encrypted data in the JWE compact or JSON (optional) format.
|
String |
encrypt(EncryptionInput input)
Encrypt the data in the JWE compact or JSON (optional) format.
|
String |
encrypt(String data)
Encrypt the data in the JWE compact or JSON (optional) format..
|
String |
sign(SignatureInput input)
Sign the data in the JWS Compact or JSON (optional) format.
|
String |
sign(String data)
Sign the data in the JWS Compact or JSON (optional) format.
|
VerificationOutput |
verification(String jws)
Verify the signed data in the JWS compact or JSON (optional) format.
|
VerificationOutput |
verificationDetached(String jws,
String detachedData)
Verify the signed and detached data in the JWS compact or JSON (optional) format.
|
String |
verify(String jws)
Verify the signed data in the JWS compact or JSON (optional) format.
|
String |
verifyDetached(String jws,
String detachedData)
Verify the signed and detached data in the JWS compact or JSON (optional) format.
|
String sign(String data) throws JoseException
data
- the data to be signedJoseException
String sign(SignatureInput input) throws JoseException
input
- the data and optional JWS headers which have to be integrity-protectedJoseException
String verify(String jws) throws JoseException
jws
- the JWS sequence.JoseException
VerificationOutput verification(String jws) throws JoseException
jws
- the JWS sequence.JoseException
String verifyDetached(String jws, String detachedData) throws JoseException
jws
- the JWS sequence.detachedData
- the signed and detached data.JoseException
VerificationOutput verificationDetached(String jws, String detachedData) throws JoseException
jws
- the JWS sequence.detachedData
- the signed and detached data.JoseException
String encrypt(String data) throws JoseException
data
- the data to be encryptedJoseException
String encrypt(EncryptionInput input) throws JoseException
input
- the data and optional metadata which have to be encrypted and integrity-protectedJoseException
String decrypt(String jwe) throws JoseException
jwe
- the JWE sequence.JoseException
DecryptionOutput decryption(String jwe) throws JoseException
jwe
- the JWE sequence.JoseException
Copyright © 2018 JBoss by Red Hat. All rights reserved.