Constructor and Description |
---|
DefaultJoseImpl(JoseConfiguration config) |
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.
|
public DefaultJoseImpl(JoseConfiguration config)
public String sign(String data)
Jose
public String sign(SignatureInput input)
Jose
public String verify(String jws) throws JoseException
Jose
verify
in interface Jose
jws
- the JWS sequence.JoseException
public VerificationOutput verification(String jws) throws JoseException
Jose
verification
in interface Jose
jws
- the JWS sequence.JoseException
public String verifyDetached(String jws, String detachedData) throws JoseException
Jose
verifyDetached
in interface Jose
jws
- the JWS sequence.detachedData
- the signed and detached data.JoseException
public VerificationOutput verificationDetached(String jws, String detachedData) throws JoseException
Jose
verificationDetached
in interface Jose
jws
- the JWS sequence.detachedData
- the signed and detached data.JoseException
public String encrypt(String data)
Jose
public String encrypt(EncryptionInput input)
Jose
public String decrypt(String jwe) throws JoseException
Jose
decrypt
in interface Jose
jwe
- the JWE sequence.JoseException
public DecryptionOutput decryption(String jwe) throws JoseException
Jose
decryption
in interface Jose
jwe
- the JWE sequence.JoseException
Copyright © 2018 JBoss by Red Hat. All rights reserved.