// Path: src/main/java/wdawson/samples/dropwizard/util/jwt/exception/JwtParseException.java
// public class JwtParseException extends Exception {
// 
//     public JwtParseException(String s) {
//         super(s);
//     }
// 
//     public JwtParseException(Throwable throwable) {
//         super(throwable);
//     }
// 
// }


import com.nimbusds.jose.JWSObject;
import wdawson.samples.dropwizard.util.jwt.exception.JwtParseException;
import java.text.ParseException;
package wdawson.samples.dropwizard.util.jwt.dto;



/**
 * @author Jon Todd
 */
public final class Jwt {

    private final JWSObject jwsObject;
    private final String jwtString;

    protected Jwt(JWSObject jwsObject, String jwtString) {
        this.jwsObject = jwsObject;
        this.jwtString = jwtString;
    }

// Path: src/main/java/wdawson/samples/dropwizard/util/jwt/exception/JwtParseException.java
// public class JwtParseException extends Exception {
// 
//     public JwtParseException(String s) {
//         super(s);
//     }
// 
//     public JwtParseException(Throwable throwable) {
//         super(throwable);
//     }
// 
// }


// Path: src/main/java/wdawson/samples/dropwizard/util/jwt/dto/Jwt.java
import com.nimbusds.jose.JWSObject;
import wdawson.samples.dropwizard.util.jwt.exception.JwtParseException;
import java.text.ParseException;

package wdawson.samples.dropwizard.util.jwt.dto;



/**
 * @author Jon Todd
 */
public final class Jwt {

    private final JWSObject jwsObject;
    private final String jwtString;

    protected Jwt(JWSObject jwsObject, String jwtString) {
        this.jwsObject = jwsObject;
        this.jwtString = jwtString;
    }

    public static Jwt newFromString(String token) throws JwtParseException {