Package org.europa.together.business
Interface JsonWebToken
- All Known Implementing Classes:
NimbusJwt
@API(status=STABLE,
since="3.1",
consumers="NimbusJwt")
@Component
public interface JsonWebToken
- Author:
- ed
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildHMAC512SignedJws
(String payload) JSON Web Signature (JWS) represents content secured with digital signatures or Message Authentication Codes (MACs) using JSON-based data structures.buildHMAC512SignedJwt
(String issuer, String subject, List<String> audience) Create a JSON Web Token.
-
Field Details
-
FEATURE_ID
Identifier for the given feature.- See Also:
-
VERSION
- See Also:
-
-
Method Details
-
buildHMAC512SignedJws
JSON Web Signature (JWS) represents content secured with digital signatures or Message Authentication Codes (MACs) using JSON-based data structures. Cryptographic algorithms and identifiers for use with this specification are described in the separate JSON Web Algorithms (JWA) specification and an IANA registry defined by that specification. Related encryption capabilities are described in the separate JSON Web Encryption (JWE) specification.- Parameters:
payload
- as String- Returns:
- JWS as String
- Throws:
JsonProcessingException
-
buildHMAC512SignedJwt
String buildHMAC512SignedJwt(String issuer, String subject, List<String> audience) throws JsonProcessingException Create a JSON Web Token. JSON Web Token (JWT) is a compact, URL-safe means of representing claims to be transferred between two parties. The claims in a JWT are encoded as a JSON object that is used as the payload of a JSON Web Signature (JWS) structure or as the plaintext of a JSON Web Encryption (JWE) structure, enabling the claims to be digitally signed or integrity protected with a Message Authentication Code (MAC) and/or encrypted.- Parameters:
issuer
- as Stringsubject
- as Stringaudience
- as List of Strings- Returns:
- JWT as String
- Throws:
JsonProcessingException
-
parseHMAC512SingedJws
- Throws:
JsonProcessingException
-
parseHMAC512SingedJwt
- Throws:
JsonProcessingException
-