/* DO NOT EDIT: File is auto-generated */
package <%= to_package(client.qualified_token_name) %>;

@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings( { "UWF_UNWRITTEN_FIELD" } )
@jsinterop.annotations.JsType( isNative = true, namespace = jsinterop.annotations.JsPackage.GLOBAL, name = "Object" )
public class <%= client.token_name %>
{
  private String sub;
<% client.claims.select{|claim| claim.config['claim.name'] && claim.config['id.token.claim'].to_s == 'true'}.each do |claim| -%>
  private <%= claim.js_type %> <%= claim.config['claim.name'] %>;
<% end -%>

  protected <%= client.token_name %>()
  {
  }

  @jsinterop.annotations.JsOverlay
  public final String getId()
  {
    return sub;
  };
<% client.claims.select{|claim| claim.config['claim.name'] && claim.config['access.token.claim'].to_s == 'true'}.each do |claim| -%>

  @jsinterop.annotations.JsOverlay
  public final <%= claim.js_type %> get<%= Reality::Naming.pascal_case(claim.name.to_s.gsub(' ','_')) %>()
  {
    return <%= claim.config['claim.name'] %>;
  }
<% end -%>
}

/* DO NOT EDIT: File is auto-generated */
package <%= to_package(client.qualified_token_name) %>;

@javax.annotation.Generated( "Domgen" )
@SuppressWarnings( { "UnusedDeclaration", "JavaDoc" } )
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings( { "UWF_UNWRITTEN_FIELD" } )
@jsinterop.annotations.JsType( isNative = true, namespace = jsinterop.annotations.JsPackage.GLOBAL, name = "Object" )
public class <%= client.token_name %>
{
  private String sub;
<% client.claims.select{|claim| claim.config['claim.name'] && claim.config['access.token.claim'].to_s == 'true'}.each do |claim| -%>
  private <%= claim.js_type %> <%= claim.config['claim.name'] %>;
<% end -%>

  protected <%= client.token_name %>()
  {
  }

  @jsinterop.annotations.JsOverlay
  public final String getId()
  {
    return sub;
  };
<% client.claims.select{|claim| claim.config['claim.name'] && claim.config['access.token.claim'].to_s == 'true'}.each do |claim| -%>

  @jsinterop.annotations.JsOverlay
  public final <%= claim.js_type %> get<%= Reality::Naming.pascal_case(claim.name.to_s.gsub(' ','_')) %>()
  {
    return <%= claim.config['claim.name'] %>;
  }
<% end -%>
}

Make sure the correct fields are created for claims that are available on access token
Make sure the correct fields are created for claims that are available on access token
