Each operation you will perform with this library uses objects. Before to start, you need to know object types provided by this library and the methods you can call.
In general, you will need to create and load JWS or encrypted JWS (JWS as payload of a JWE) in compact JSON serialization mode. To ease the creation and loading of such data, the library provides two classes that have convenient methods.
Read the dedicated page to know how to instantiate and use these classes.