public AuthorizationCode(JsonValue token) throws InvalidGrantException {
  super(token);
  if (!OAUTH_CODE_TYPE.equals(getTokenName())) {
    throw new InvalidGrantException("Token is not an authorization code token: " + getTokenId());
  }
}

public AuthorizationCode ( JsonValue token ) throws InvalidGrantException { super ( token ) ; if ( ! OAUTH_CODE_TYPE . equals ( getTokenName ( ) ) ) { throw new InvalidGrantException ( "Token is not an authorization code token: " + getTokenId ( ) ) ; } }
constructs a new authorizationcode backed with the data in the specified jsonvalue .
