blob: 91996f3cca20ffb34f0291740155ea0deab22b14 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.servicecomb.fence.jwt;
public class JWTClaimsCommon {
// see: https://tools.ietf.org/html/rfc7519
// (Issuer) Claim
protected String iss;
// (Subject) Claim
protected String sub;
// (Audience) Claim
protected String aud;
// (Expiration Time) Claim
protected long exp;
// (Not Before) Claim
protected long nbf;
// (Issued At) Claim
protected long iat;
// (JWT ID) Claim
protected String jti;
public String getIss() {
return iss;
}
public void setIss(String iss) {
this.iss = iss;
}
public String getSub() {
return sub;
}
public void setSub(String sub) {
this.sub = sub;
}
public String getAud() {
return aud;
}
public void setAud(String aud) {
this.aud = aud;
}
public long getExp() {
return exp;
}
public void setExp(long exp) {
this.exp = exp;
}
public long getNbf() {
return nbf;
}
public void setNbf(long nbf) {
this.nbf = nbf;
}
public long getIat() {
return iat;
}
public void setIat(long iat) {
this.iat = iat;
}
public String getJti() {
return jti;
}
public void setJti(String jti) {
this.jti = jti;
}
}