fixed empty constructor of id token, fixed bug in copy constructor of claimset

pull/263/head
Justin Richer 12 years ago
parent 1853bd7117
commit b49c6571e8

@ -226,7 +226,7 @@ public class ClaimSet {
public void loadFromClaimSet(ClaimSet claimSet) {
loadFromJsonObject(getAsJsonObject()); // we push to a JSON object and back to let subclasses override this
loadFromJsonObject(claimSet.getAsJsonObject()); // we push to a JSON object and back to let subclasses override this
jsonString = claimSet.toJsonString(); // preserve the string on input

@ -38,9 +38,9 @@ public class Jwt {
public Jwt() {
this.header = new JwtHeader();
this.claims = new JwtClaims();
this.signature = null; // unsigned by default
setHeader(new JwtHeader());
setClaims(new JwtClaims());
setSignature(null); // unsigned by default
}
@ -52,7 +52,6 @@ public class Jwt {
* @param signature
*/
public Jwt(JwtHeader header, JwtClaims claims, String signature) {
super();
setHeader(header);
setClaims(claims);
setSignature(signature);

@ -53,7 +53,7 @@ public class IdToken extends Jwt {
* @param claims
* @param signature
*/
public IdToken(JwtHeader header, JwtClaims claims, String signature) {
public IdToken(JwtHeader header, IdTokenClaims claims, String signature) {
super(header, claims, signature);
}

Loading…
Cancel
Save